Changeset View
Changeset View
Standalone View
Standalone View
applets/batterymonitor/package/contents/ui/CompactRepresentation.qml
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 62 | BatteryIcon { | |||
---|---|---|---|---|---|
66 | percent: batteryContainer.percent | 66 | percent: batteryContainer.percent | ||
67 | pluggedIn: batteryContainer.pluggedIn | 67 | pluggedIn: batteryContainer.pluggedIn | ||
68 | height: isConstrained ? batteryContainer.iconSize : batteryContainer.iconSize - batteryLabel.height | 68 | height: isConstrained ? batteryContainer.iconSize : batteryContainer.iconSize - batteryLabel.height | ||
69 | width: height | 69 | width: height | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | BadgeOverlay { | 72 | BadgeOverlay { | ||
73 | anchors.fill: batteryIcon | 73 | anchors.fill: batteryIcon | ||
74 | text: i18nc("battery percentage below battery icon", "%1%", percent) | 74 | text: batteryContainer.hasBattery ? i18nc("battery percentage below battery icon", "%1%", percent) : "-" | ||
broulik: Please use a – instead of a - and perhaps i18nc so it can be translated to another special… | |||||
75 | icon: batteryIcon | 75 | icon: batteryIcon | ||
76 | visible: plasmoid.configuration.showPercentage | 76 | visible: plasmoid.configuration.showPercentage | ||
77 | } | 77 | } | ||
78 | } | 78 | } | ||
79 | } | 79 | } | ||
80 | } | 80 | } | ||
81 | } | 81 | } |
Please use a – instead of a - and perhaps i18nc so it can be translated to another special character if needed