Skip to content

Commit

Permalink
Update wid.js
Browse files Browse the repository at this point in the history
  • Loading branch information
miseler authored Jun 3, 2024
1 parent c2111eb commit 3966b99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/widdevst/wid.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
}
t = t.usage / t.total;
*/
var b = E.getBattery();
var x = this.x;
var y = this.y;
g.reset();
Expand All @@ -38,6 +37,9 @@
/*
g.drawRect(x + 2, y + 1, x + 20, y + 21);
/*/
var b = E.getBattery();
var corner = 4;
if(b <= 65) {g.drawLine(x+21-corner, y+0, x+21, y+0);g.drawLine(x+21, y+1, x+21, y+corner);}
//b=100;
setColor(b);
var top = E.clip(b-75, 0, 25);
Expand Down

0 comments on commit 3966b99

Please sign in to comment.