diff --git a/apps.json b/apps.json index a0616c635..9eba02710 100644 --- a/apps.json +++ b/apps.json @@ -4680,7 +4680,7 @@ "name": "Charging Status", "shortName":"ChargingStatus", "icon": "widget.png", - "version":"0.1.5", + "version":"0.1.6", "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 4f77351e1..b75335c45 100644 --- a/apps/widChargingStatus/widget.js +++ b/apps/widChargingStatus/widget.js @@ -7,17 +7,25 @@ g.flip(); }); + const chargingSymbol = { + width: 16, + height: 16, + bpp: 1, + transparent: 1, + buffer: require("heatshrink").decompress(atob("/9/AIP+v/8AIP//ABBg/wh4BB8Ef/4BBn/+AIIXB/4BB")) + }; + function draw() { g.reset(); - g.setColor("#FD0"); // on = amber + g.setColor("#FD0"); //if (Bangle.isCharging()) { - g.setColor('#0f0').drawImage(atob("EBCBAf9//3/+f/x//P/4//gH8A/wD+Af/x//P/4//n/+//7/"), this.x, this.y); + g.drawImage(chargingSymbol, this.x + 2, this.y); //} } WIDGETS.chargingStatus = { area: 'tr', - width: 32, + width: 20, draw: draw, };