diff --git a/config/BarConfig.qml b/config/BarConfig.qml index d7e89e3a..2b5e7d51 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 e36b3e2b..44e51ce8 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")