mirror of https://github.com/espruino/BangleApps
Update widget.js
parent
b7cb979c6b
commit
b6d425f4ad
|
@ -8,7 +8,7 @@
|
||||||
if (!BANGLEJS2)
|
if (!BANGLEJS2)
|
||||||
g.setColor(percent>70 ? "#ff0000" : (percent>50 ? "#ffff00" : "#ffffff"));
|
g.setColor(percent>70 ? "#ff0000" : (percent>50 ? "#ffff00" : "#ffffff"));
|
||||||
else
|
else
|
||||||
g.setColor(percent>70 ? "#0f0" : (percent>50 ? "#00f" : "#f00"));
|
g.setColor(percent>70 ? "#f00" : (percent>50 ? "#00f" : "#0f0"));
|
||||||
g.setFont("6x8").setFontAlign(0,0).drawString(percent+"%", this.x+12, this.y+20, true/*solid*/);
|
g.setFont("6x8").setFontAlign(0,0).drawString(percent+"%", this.x+12, this.y+20, true/*solid*/);
|
||||||
}
|
}
|
||||||
var ramInterval;
|
var ramInterval;
|
||||||
|
|
Loading…
Reference in New Issue