More intuitive bat level

pull/1333/head
David Peer 2022-01-21 19:18:24 +01:00
parent 911eb805fd
commit 861b9c530d
3 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ It looks like an analog clock, but its not! It shows the time digital - check th
## Help
The red hand shows the number of steps (0 = 0°, 2.5k = 90°, 5k = 180°, ...) and the
black one the battery level (100% = 0°, 75% = 90°, 50% = 180°, ...) as also shown
black one the battery level (100% = 0°, 75% = 270°, 50% = 180°, ...) as also shown
in the following image:
![](overview.png)

View File

@ -82,7 +82,7 @@ function drawHands() {
var drawStepsHand = g.drawRotRect.bind(g,5,12,R-24);
// Draw hands
var bat = 100 - E.getBattery();
var bat = E.getBattery();
var maxBat = 100;
g.setColor(g.theme.fg);
drawBatteryHand(parseInt(bat*360/maxBat));

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 63 KiB