summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml6
1 files changed, 3 insertions, 3 deletions
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 {
46 if (!root.batteryDevice?.ready) 46 if (!root.batteryDevice?.ready)
47 return "#555"; 47 return "#555";
48 48
49 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) 49 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)
50 return "#f2201f"; 50 return "#f2201f";
51 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) 51 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)
52 return "#f28a21"; 52 return "#f28a21";
53 if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.8)) 53 if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.78))
54 return "#fff"; 54 return "#fff";
55 return "#555"; 55 return "#555";
56 } 56 }