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.
This commit is contained in:
Devin Lin 2026-02-14 22:36:04 -05:00
parent c2e6194c0e
commit 3b90a01ba4

View file

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