use different export technique

master
Sebastian Di Luzio 2021-12-04 21:08:40 +01:00
parent d3b586635c
commit 6b8c201ff2
2 changed files with 3 additions and 11 deletions

View File

@ -4680,7 +4680,7 @@
"name": "Charging Status", "name": "Charging Status",
"shortName":"ChargingStatus", "shortName":"ChargingStatus",
"icon": "widget.png", "icon": "widget.png",
"version":"0.1.11", "version":"0.1.12",
"type": "widget", "type": "widget",
"description": "A simple widget that shows up whenever the watch starts charging.", "description": "A simple widget that shows up whenever the watch starts charging.",
"tags": "widget,battery", "tags": "widget,battery",

View File

@ -7,19 +7,11 @@
g.flip(); g.flip();
}); });
const chargingIcon = {
width: 32,
height: 32,
bpp: 1,
transparent: 1,
buffer: require("heatshrink").decompress(atob("///34CB/8/AYv+AYX8AYd/AYP4AY3wAY3gAYXAAYcAEAOAAYgMBHwYDC/0AgIyBAYkDIYQDDg4DGh4DCj4DGL45DCAYhyC/oCBA="))
}
function draw() { function draw() {
g.reset(); g.reset();
g.setColor("#FD0"); //g.setColor("#FD0");
//if (Bangle.isCharging()) { //if (Bangle.isCharging()) {
g.drawImage(chargingIcon, this.x /* + 2 */ , this.y); g.drawImage(atob("kEgwMB///34CB/8/AYv+AYX8AYd/AYP4AY3wAY3gAYXAAYcAEAOAAYgMBIQIPBAYX+gBGB/gDEgZDCAYcHAY0PAYUfAYxfHIYQDEOQX9AQI="), this.x /* + 2 */ , this.y);
//g.drawString('X',this.x,this.y) //g.drawString('X',this.x,this.y)
//} //}
} }