diff --git a/apps.json b/apps.json index b29b2717a..8ac5a1de5 100644 --- a/apps.json +++ b/apps.json @@ -4680,7 +4680,7 @@ "name": "Charging Status", "shortName":"ChargingStatus", "icon": "widget.png", - "version":"0.1.10", + "version":"0.1.11", "type": "widget", "description": "A simple widget that shows up whenever the watch starts charging.", "tags": "widget,battery", diff --git a/apps/widChargingStatus/widget.js b/apps/widChargingStatus/widget.js index 723a10374..974e08aa7 100644 --- a/apps/widChargingStatus/widget.js +++ b/apps/widChargingStatus/widget.js @@ -8,26 +8,25 @@ }); const chargingIcon = { - width: 16, - height: 16, + width: 32, + height: 32, bpp: 1, - transparent: 0, - buffer: require("heatshrink").decompress(atob("gGAAIMBwEDAIMAg4BB/EP+ABBj/ggABB4EBAIIXBgABB")) + transparent: 1, + buffer: require("heatshrink").decompress(atob("///34CB/8/AYv+AYX8AYd/AYP4AY3wAY3gAYXAAYcAEAOAAYgMBHwYDC/0AgIyBAYkDIYQDDg4DGh4DCj4DGL45DCAYhyC/oCBA=")) } function draw() { g.reset(); g.setColor("#FD0"); - g.setFontVector(16); //if (Bangle.isCharging()) { - // g.drawImage(chargingIcon, this.x /* + 2 */ , this.y); - g.drawString('X',this.x,this.y) + g.drawImage(chargingIcon, this.x /* + 2 */ , this.y); + //g.drawString('X',this.x,this.y) //} } WIDGETS.chargingStatus = { area: 'tr', - width: 20, + width: 32, draw: draw, };