(config) ags: oops
This commit is contained in:
parent
f838661737
commit
5dc2e47942
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ function BatteryLabel() {
|
||||||
const percent = battery.bind("percent").as(x => x.toString()) + "%";
|
const percent = battery.bind("percent").as(x => x.toString()) + "%";
|
||||||
|
|
||||||
function getIcon() {
|
function getIcon() {
|
||||||
const icon = [100, 50, 25, 0].find(threshold => threshold <= battery.percent);
|
const icon = [100, 50, 30, 10].find(threshold => threshold <= battery.percent);
|
||||||
|
|
||||||
return `battery-${icons[icon]}-symbolic`;
|
return `battery-${icons[icon]}-symbolic`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue