mirror of https://github.com/espruino/BangleApps
use different export technique
parent
d3b586635c
commit
6b8c201ff2
|
@ -4680,7 +4680,7 @@
|
|||
"name": "Charging Status",
|
||||
"shortName":"ChargingStatus",
|
||||
"icon": "widget.png",
|
||||
"version":"0.1.11",
|
||||
"version":"0.1.12",
|
||||
"type": "widget",
|
||||
"description": "A simple widget that shows up whenever the watch starts charging.",
|
||||
"tags": "widget,battery",
|
||||
|
|
|
@ -7,19 +7,11 @@
|
|||
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() {
|
||||
g.reset();
|
||||
g.setColor("#FD0");
|
||||
//g.setColor("#FD0");
|
||||
//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)
|
||||
//}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue