popouts: fixed width for battery popout

This commit is contained in:
2 * r + 2 * t 2025-06-07 20:38:52 +10:00
parent 0cf46c4409
commit 285221b1ff
2 changed files with 2 additions and 0 deletions

View file

@ -13,6 +13,7 @@ Singleton {
property int innerHeight: 30
property int windowPreviewSize: 400
property int trayMenuWidth: 300
property int batteryWidth: 200
}
component Workspaces: QtObject {

View file

@ -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")