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() {
|
||||
g.reset();
|
||||
if (NRF.getSecurityStatus().connected)
|
||||
if (NRF.getSecurityStatus().connected) {
|
||||
if (g.getBgColor() === 31) { // If background color is blue use cyan instead
|
||||
g.setColor("#0ff");
|
||||
} else {
|
||||
g.setColor((g.getBPP()>8) ? "#07f" : (g.theme.dark ? "#0ff" : "#00f"));
|
||||
else
|
||||
}
|
||||
} else {
|
||||
g.setColor(g.theme.dark ? "#666" : "#999");
|
||||
}
|
||||
g.drawImage(atob("CxQBBgDgFgJgR4jZMawfAcA4D4NYybEYIwTAsBwDAA=="),2+this.x,2+this.y);
|
||||
},changed:function() {
|
||||
WIDGETS["bluetooth"].draw();
|
||||
|
|
Loading…
Reference in New Issue