From 3b90a01ba4da6784b4d14b25afdfa29cfb3be8a5 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sat, 14 Feb 2026 22:36:04 -0500 Subject: [PATCH] statusbar: Use implicit battery widths rather than manually setting them The calculated widths sometimes seem to be wrong, I don't see issues with just using the implicit width. --- .../mobileshell/qml/statusbar/indicators/BatteryIndicator.qml | 1 - 1 file changed, 1 deletion(-) diff --git a/components/mobileshell/qml/statusbar/indicators/BatteryIndicator.qml b/components/mobileshell/qml/statusbar/indicators/BatteryIndicator.qml index b6cc48f8..5eaa6517 100644 --- a/components/mobileshell/qml/statusbar/indicators/BatteryIndicator.qml +++ b/components/mobileshell/qml/statusbar/indicators/BatteryIndicator.qml @@ -37,7 +37,6 @@ RowLayout { delegate: RowLayout { id: batteryBase - width: (batteryBase.visible ? ((batteryLabel.visible ? batteryLabel.width : 0) + battery.width) + (ShellSettings.Settings.showBatteryPercentage ? root.elementSpacing : 0) : 0) Layout.fillHeight: false Layout.alignment: Qt.AlignVCenter