From 6d4230b8cf205b989315f69d90149cbfae284a22 Mon Sep 17 00:00:00 2001 From: Damocles Date: Sun, 12 Apr 2026 16:46:58 +0200 Subject: [PATCH] fix Battery readonly Behavior --- modules/Battery.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Battery.qml b/modules/Battery.qml index 3196a84..d0e07c1 100644 --- a/modules/Battery.qml +++ b/modules/Battery.qml @@ -18,7 +18,7 @@ M.BarSection { readonly property var dev: UPower.displayDevice readonly property real pct: (dev?.percentage ?? 0) * 100 readonly property bool charging: dev?.state === UPowerDeviceState.Charging - readonly property color _stateColor: charging ? M.Theme.base0B : pct < 15 ? M.Theme.base08 : pct < 30 ? M.Theme.base09 : M.Theme.base0B + property color _stateColor: charging ? M.Theme.base0B : pct < 15 ? M.Theme.base08 : pct < 30 ? M.Theme.base09 : M.Theme.base0B Behavior on _stateColor { ColorAnimation { duration: 300 } }