Skip to content

Commit 196d2a5

Browse files
authored
If theme is dark, change blue to cyan for readability
1 parent e8aee92 commit 196d2a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/widram/widget.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
if (!BANGLEJS2)
99
g.setColor(percent>70 ? "#ff0000" : (percent>50 ? "#ffff00" : "#ffffff"));
1010
else
11-
g.setColor(percent>70 ? "#f00" : (percent>50 ? "#00f" : "#0f0"));
11+
12+
g.setColor(percent>70 ? "#f00" : (percent>50 ? (g.theme.dark ? "#0ff" : "#00f") : "#0f0"));
1213
g.setFont("6x8").setFontAlign(0,0).drawString(percent+"%", this.x+12, this.y+20, true/*solid*/);
1314
}
1415
var ramInterval;

0 commit comments

Comments
 (0)