Changed battery indicator ranges
This commit is contained in:
parent
60a5e5ba30
commit
e868838fcc
1 changed files with 4 additions and 4 deletions
|
|
@ -47,13 +47,13 @@ export function Battery() {
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
let icon = faBatteryFull;
|
let icon = faBatteryFull;
|
||||||
if (percentage < 25) {
|
if (percentage < 10) {
|
||||||
icon = faBatteryEmpty;
|
icon = faBatteryEmpty;
|
||||||
} else if (percentage < 50) {
|
} else if (percentage < 35) {
|
||||||
icon = faBatteryQuarter;
|
icon = faBatteryQuarter;
|
||||||
} else if (percentage < 75) {
|
} else if (percentage < 65) {
|
||||||
icon = faBatteryHalf;
|
icon = faBatteryHalf;
|
||||||
} else if (percentage < 100) {
|
} else if (percentage < 90) {
|
||||||
icon = faBatteryThreeQuarters;
|
icon = faBatteryThreeQuarters;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue