woke agenda
This commit is contained in:
parent
5dc2e47942
commit
4ac4ddcd44
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, 30, 10].find(threshold => threshold <= battery.percent);
|
const icon = [80, 50, 30, 10].find(threshold => threshold <= battery.percent);
|
||||||
|
|
||||||
return `battery-${icons[icon]}-symbolic`;
|
return `battery-${icons[icon]}-symbolic`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue