forked from FOSS/BangleApps
Rebble: fix battery size
parent
e68d04da5b
commit
dac6e6ec91
|
@ -236,7 +236,7 @@ function drawBattery(x,y,wi,hi) {
|
|||
g.clearRect(x+2,y+2+2,x+wi-4-2,y+2+hi-2); // centre
|
||||
g.setColor(g.theme.fg);
|
||||
g.fillRect(x+wi-3,y+2+(((hi - 1)/2)-1),x+wi-2,y+2+(((hi - 1)/2)-1)+4); // contact
|
||||
g.fillRect(x+3, y+5, x +4 + E.getBattery()*(wi-12)/100, y+hi-1); // the level
|
||||
g.fillRect(x+3, y+5, x +3 + E.getBattery()*(wi-10)/100, y+hi-1); // the level
|
||||
|
||||
if( Bangle.isCharging() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue