Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/components/Battery.qml
Show All 39 Lines | 36 | PW.BatteryIcon { | |||
---|---|---|---|---|---|
40 | pluggedIn: pmSource.data["AC Adapter"] ? pmSource.data["AC Adapter"]["Plugged in"] : false | 40 | pluggedIn: pmSource.data["AC Adapter"] ? pmSource.data["AC Adapter"]["Plugged in"] : false | ||
41 | 41 | | |||
42 | height: batteryLabel.height | 42 | height: batteryLabel.height | ||
43 | width: height | 43 | width: height | ||
44 | } | 44 | } | ||
45 | 45 | | |||
46 | PlasmaComponents.Label { | 46 | PlasmaComponents.Label { | ||
47 | id: batteryLabel | 47 | id: batteryLabel | ||
48 | font.pointSize: config.fontSize | ||||
48 | height: undefined | 49 | height: undefined | ||
49 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","%1%", battery.percent) | 50 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","%1%", battery.percent) | ||
50 | Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Battery at %1%", battery.percent) | 51 | Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Battery at %1%", battery.percent) | ||
51 | } | 52 | } | ||
52 | } | 53 | } |