From f84a6ce49c40b8f5c807fcab3ef9c649d7e313a5 Mon Sep 17 00:00:00 2001 From: lucy Date: Wed, 22 Jul 2026 01:51:26 +0200 Subject: [PATCH] update Bat.qml to show charging bolt when charging --- modules/bar/Bat.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/bar/Bat.qml b/modules/bar/Bat.qml index c0ed8f1..1803202 100644 --- a/modules/bar/Bat.qml +++ b/modules/bar/Bat.qml @@ -13,7 +13,7 @@ Rectangle { visible: UPower.displayDevice.isLaptopBattery property double percent: UPower.displayDevice.percentage * 100 property bool hasBattery: UPower.displayDevice.isLaptopBattery - property bool charging: UPower.displayDevice.state == UPowerDeviceState.Charging + property bool charging: UPower.displayDevice.state === UPowerDeviceState.Charging required property double moduleHeight implicitHeight: moduleHeight implicitWidth: batLayout.implicitWidth + 16 @@ -38,7 +38,7 @@ Rectangle { id: batLayout anchors.centerIn: root MaterialIcon { - text: root.batteryIcon() + text: root.batteryIcon(root.percent, root.charging) } StyledText { text: Math.floor(root.percent) + "%"