mirror of https://github.com/espruino/BangleApps
[widbt] - fixes widget not showing on blue background
parent
65d4b410ff
commit
b7cbdf269d
|
@ -1,9 +1,14 @@
|
||||||
WIDGETS["bluetooth"]={area:"tr",width:15,draw:function() {
|
WIDGETS["bluetooth"]={area:"tr",width:15,draw:function() {
|
||||||
g.reset();
|
g.reset();
|
||||||
if (NRF.getSecurityStatus().connected)
|
if (NRF.getSecurityStatus().connected) {
|
||||||
g.setColor((g.getBPP()>8) ? "#07f" : (g.theme.dark ? "#0ff" : "#00f"));
|
if (g.getBgColor() === 31) { // If background color is blue use cyan instead
|
||||||
else
|
g.setColor("#0ff");
|
||||||
|
} else {
|
||||||
|
g.setColor((g.getBPP()>8) ? "#07f" : (g.theme.dark ? "#0ff" : "#00f"));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
g.setColor(g.theme.dark ? "#666" : "#999");
|
g.setColor(g.theme.dark ? "#666" : "#999");
|
||||||
|
}
|
||||||
g.drawImage(atob("CxQBBgDgFgJgR4jZMawfAcA4D4NYybEYIwTAsBwDAA=="),2+this.x,2+this.y);
|
g.drawImage(atob("CxQBBgDgFgJgR4jZMawfAcA4D4NYybEYIwTAsBwDAA=="),2+this.x,2+this.y);
|
||||||
},changed:function() {
|
},changed:function() {
|
||||||
WIDGETS["bluetooth"].draw();
|
WIDGETS["bluetooth"].draw();
|
||||||
|
|
Loading…
Reference in New Issue