widbata: fix vertical align

pull/1397/head
Francesco Bedussi 2022-02-06 10:14:18 +01:00
parent 6872c38a8d
commit 371cd8ba13
3 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
0.01: Created
0.02: Set sort order to -10 so always display in right hand corner
0.03: Set sort order from the code
0.04: fix vertical align

View File

@ -4,7 +4,7 @@
"shortName":"Battery Theme",
"icon": "widbata.png",
"screenshots": [{"url":"screenshot_widbata_1.png"}],
"version":"0.03",
"version":"0.04",
"type": "widget",
"supports": ["BANGLEJS", "BANGLEJS2"],
"readme": "README.md",

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;
var x = this.x, y = this.y + 5;
g.reset();
g.setColor(g.theme.fg);
g.fillRect(x,y+2,x+s-4,y+2+t); // outer