most questionable commit on this pr

This commit is contained in:
Turann_
2026-01-26 02:58:32 +03:00
parent b40cbaf654
commit 88a48f5d30
2 changed files with 8 additions and 4 deletions
+1
View File
@@ -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",
+7 -4
View File
@@ -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() {