diff options
| -rw-r--r-- | config/BarConfig.qml | 1 | ||||
| -rw-r--r-- | modules/bar/popouts/Battery.qml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/config/BarConfig.qml b/config/BarConfig.qml index d7e89e3..2b5e7d5 100644 --- a/config/BarConfig.qml +++ b/config/BarConfig.qml @@ -13,6 +13,7 @@ Singleton { property int innerHeight: 30 property int windowPreviewSize: 400 property int trayMenuWidth: 300 + property int batteryWidth: 200 } component Workspaces: QtObject { diff --git a/modules/bar/popouts/Battery.qml b/modules/bar/popouts/Battery.qml index e36b3e2..44e51ce 100644 --- a/modules/bar/popouts/Battery.qml +++ b/modules/bar/popouts/Battery.qml @@ -10,6 +10,7 @@ Column { id: root spacing: Appearance.spacing.normal + width: BarConfig.sizes.batteryWidth StyledText { text: UPower.displayDevice.isLaptopBattery ? qsTr("Remaining: %1%").arg(Math.round(UPower.displayDevice.percentage * 100)) : qsTr("No battery detected") |