From 285221b1ffdf59259a4ee08b0018a60d95bcc5a0 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 7 Jun 2025 20:38:52 +1000 Subject: popouts: fixed width for battery popout --- config/BarConfig.qml | 1 + modules/bar/popouts/Battery.qml | 1 + 2 files changed, 2 insertions(+) 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") -- cgit v1.2.3-freya