mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
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:
parent
c2e6194c0e
commit
3b90a01ba4
1 changed files with 0 additions and 1 deletions
|
|
@ -37,7 +37,6 @@ RowLayout {
|
||||||
delegate: RowLayout {
|
delegate: RowLayout {
|
||||||
id: batteryBase
|
id: batteryBase
|
||||||
|
|
||||||
width: (batteryBase.visible ? ((batteryLabel.visible ? batteryLabel.width : 0) + battery.width) + (ShellSettings.Settings.showBatteryPercentage ? root.elementSpacing : 0) : 0)
|
|
||||||
Layout.fillHeight: false
|
Layout.fillHeight: false
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue