From 5efc380b83dbf8481c0482139c77c9a442fa16df Mon Sep 17 00:00:00 2001 From: Sebastian Di Luzio Date: Sat, 4 Dec 2021 20:54:29 +0100 Subject: [PATCH] use inverted icon --- apps.json | 2 +- apps/widChargingStatus/widget.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps.json b/apps.json index 6c223e7d2..9bb299bec 100644 --- a/apps.json +++ b/apps.json @@ -4680,7 +4680,7 @@ "name": "Charging Status", "shortName":"ChargingStatus", "icon": "widget.png", - "version":"0.1.8", + "version":"0.1.9", "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 120741b27..9fd9bdc01 100644 --- a/apps/widChargingStatus/widget.js +++ b/apps/widChargingStatus/widget.js @@ -7,17 +7,17 @@ g.flip(); }); - const chargingSymbol = { + const chargingIcon = { width: 16, height: 16, bpp: 1, - transparent: 1, - buffer: require("heatshrink").decompress(atob("/9/AIP+v/8AIP//ABBg/wh4BB8Ef/4BBn/+AIIXB/4BB")) - }; + transparent: 0, + buffer: require("heatshrink").decompress(atob("gGAAIMBwEDAIMAg4BB/EP+ABBj/ggABB4EBAIIXBgABB")) + } function draw() { g.reset(); - //g.setColor("#FD0"); + g.setColor("#FD0"); //if (Bangle.isCharging()) { g.drawImage(chargingSymbol, this.x /* + 2 */ , this.y); //g.drawString('X',this.x,this.y)