diff options
| author | Evertiro <dgriffiths@widgitlabs.com> | 2026-02-07 23:13:51 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-08 16:13:51 +1100 |
| commit | 5b2e1a6231af24472fb8ff3bfa7183a4f63c6ba7 (patch) | |
| tree | 97da1e1f5bd1ca3cc65a96d5ab80bdfb118af581 | |
| parent | chore: logo update (#1152) (diff) | |
| download | caelestia-shell-5b2e1a6231af24472fb8ff3bfa7183a4f63c6ba7.tar.gz caelestia-shell-5b2e1a6231af24472fb8ff3bfa7183a4f63c6ba7.tar.bz2 caelestia-shell-5b2e1a6231af24472fb8ff3bfa7183a4f63c6ba7.zip | |
fix: bluetooth battery bar (#1153)
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
| -rw-r--r-- | modules/controlcenter/bluetooth/Details.qml | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/modules/controlcenter/bluetooth/Details.qml b/modules/controlcenter/bluetooth/Details.qml index 5299045..bc276e0 100644 --- a/modules/controlcenter/bluetooth/Details.qml +++ b/modules/controlcenter/bluetooth/Details.qml @@ -358,31 +358,25 @@ StyledFlickable { } RowLayout { + id: batteryPercent Layout.topMargin: Appearance.spacing.small / 2 Layout.fillWidth: true Layout.preferredHeight: Appearance.padding.smaller spacing: Appearance.spacing.small / 2 StyledRect { - Layout.fillHeight: true - implicitWidth: root.device?.batteryAvailable ? parent.width * root.device.battery : 0 - radius: Appearance.rounding.full - color: Colours.palette.m3primary - } - - StyledRect { Layout.fillWidth: true Layout.fillHeight: true radius: Appearance.rounding.full color: Colours.palette.m3secondaryContainer StyledRect { - anchors.right: parent.right + anchors.left: parent.left anchors.top: parent.top anchors.bottom: parent.bottom anchors.margins: parent.height * 0.25 - implicitWidth: height + implicitWidth: root.device?.batteryAvailable ? batteryPercent.width * root.device.battery : 0 radius: Appearance.rounding.full color: Colours.palette.m3primary } |