From 88a48f5d30510f6e5e578a0cb213e02611a87306 Mon Sep 17 00:00:00 2001 From: Turann_ Date: Mon, 26 Jan 2026 02:58:32 +0300 Subject: [PATCH] most questionable commit on this pr --- Commons/IconsTabler.qml | 1 + Services/Hardware/BatteryService.qml | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Commons/IconsTabler.qml b/Commons/IconsTabler.qml index 8b2bd77ad..1c0be20c9 100644 --- a/Commons/IconsTabler.qml +++ b/Commons/IconsTabler.qml @@ -85,6 +85,7 @@ Singleton { "battery-2": "battery-2", "battery-1": "battery-1", "battery": "battery", + "battery-off": "battery-off", "wifi-0": "wifi-0", "wifi-1": "wifi-1", "wifi-2": "wifi-2", diff --git a/Services/Hardware/BatteryService.qml b/Services/Hardware/BatteryService.qml index 379ee20b2..8169fce6f 100644 --- a/Services/Hardware/BatteryService.qml +++ b/Services/Hardware/BatteryService.qml @@ -226,19 +226,22 @@ Singleton { if (pluggedIn) { return "battery-charging-2"; } - if (percent >= 90) { + if (percent >= 80) { return "battery-4"; } if (percent >= 60) { return "battery-3"; } - if (percent >= 30) { + if (percent >= 40) { return "battery-2"; } - if (percent >= 0) { + if (percent >= 20) { return "battery-1"; } - return "battery"; + if (percent >= 0) { + return "battery"; + } + return "battery-off" // New fallback icon clearly represent if nothing is true here. } function hasAnyBattery() {