diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-07 20:38:52 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-07 20:38:52 +1000 |
| commit | 285221b1ffdf59259a4ee08b0018a60d95bcc5a0 (patch) | |
| tree | a7bb2d0e7ee5ef953d9438674715b5f9a4eed030 | |
| parent | dashboard: hide dash when raise media (diff) | |
| download | caelestia-shell-285221b1ffdf59259a4ee08b0018a60d95bcc5a0.tar.gz caelestia-shell-285221b1ffdf59259a4ee08b0018a60d95bcc5a0.tar.bz2 caelestia-shell-285221b1ffdf59259a4ee08b0018a60d95bcc5a0.zip | |
popouts: fixed width for battery popout
| -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") |