Merge pull request #3305 from paul-arg/widbata

Battery Widget Themed fix: center widget vertically
pull/3314/head
Martin Boonk 2024-03-29 20:14:08 +01:00 committed by GitHub
commit ec9f9cecf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ Bangle.on('lcdPower', function(on) {
WIDGETS["bata"]={area:"tr",sortorder:-10,width:27,draw:function() {
var s = 26;
var t = 13; // thickness
var x = this.x, y = this.y + 5;
var x = this.x, y = this.y + 3;
g.reset();
g.setColor(g.theme.fg);
g.fillRect(x,y+2,x+s-4,y+2+t); // outer