forked from FOSS/BangleApps
Merge pull request #3681 from bobrippling/feat/widbtstates-opt
widbtstates: generate better js indexingmaster
commit
615ab14c74
|
@ -1 +1,2 @@
|
||||||
0.01: New App!
|
0.01: New App!
|
||||||
|
0.02: Improve generated JS
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "widbtstates",
|
"id": "widbtstates",
|
||||||
"name": "Bluetooth States",
|
"name": "Bluetooth States",
|
||||||
"version": "0.01",
|
"version": "0.02",
|
||||||
"description": "If active, shows a white bluetooth icon, if connected, a blue one (nothing if sleeping)",
|
"description": "If active, shows a white bluetooth icon, if connected, a blue one (nothing if sleeping)",
|
||||||
"icon": "widget.png",
|
"icon": "widget.png",
|
||||||
"type": "widget",
|
"type": "widget",
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
if (state == 0)
|
if (state == 0)
|
||||||
return;
|
return;
|
||||||
g.reset();
|
g.reset();
|
||||||
g.setColor(colours[state]["".concat(g.theme.dark)]);
|
g.setColor(colours[state][g.theme.dark]);
|
||||||
g.drawImage(atob("CxQBBgDgFgJgR4jZMawfAcA4D4NYybEYIwTAsBwDAA=="), this.x + 2, this.y + 2);
|
g.drawImage(atob("CxQBBgDgFgJgR4jZMawfAcA4D4NYybEYIwTAsBwDAA=="), this.x + 2, this.y + 2);
|
||||||
},
|
},
|
||||||
width: width(),
|
width: width(),
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
g.reset();
|
g.reset();
|
||||||
|
|
||||||
g.setColor(colours[state][`${g.theme.dark}`]);
|
g.setColor(colours[state][g.theme.dark as unknown as `${boolean}`]);
|
||||||
|
|
||||||
g.drawImage(
|
g.drawImage(
|
||||||
atob("CxQBBgDgFgJgR4jZMawfAcA4D4NYybEYIwTAsBwDAA=="),
|
atob("CxQBBgDgFgJgR4jZMawfAcA4D4NYybEYIwTAsBwDAA=="),
|
||||||
|
|
Loading…
Reference in New Issue