From f2c90589d4d4d6c1f101c969d1363729171b3115 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 16 Oct 2026 18:51:21 +0200 Subject: ... --- accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml') diff --git a/accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml b/accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml index ba9b2f62..b3c9173e 100644 --- a/accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml +++ b/accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml @@ -46,11 +46,11 @@ Item { if (!root.batteryDevice?.ready) return "#555"; - if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.8) && root.batteryDevice.state != UPowerDeviceState.Charging && root.batteryDevice.timeToEmpty < 20 * 60) + if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.78) && root.batteryDevice.state != UPowerDeviceState.Charging && root.batteryDevice.timeToEmpty < 20 * 60) return "#f2201f"; - if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.8) && root.batteryDevice.state != UPowerDeviceState.Charging && root.batteryDevice.timeToEmpty < 40 * 60) + if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.78) && root.batteryDevice.state != UPowerDeviceState.Charging && root.batteryDevice.timeToEmpty < 40 * 60) return "#f28a21"; - if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.8)) + if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.78)) return "#fff"; return "#555"; } -- cgit v1.2.3