forked from FOSS/BangleApps
Better support for themes.
parent
0352d0582c
commit
06356f0304
|
@ -17,7 +17,7 @@ class TwoK {
|
|||
bh = Math.floor(h/4);
|
||||
bw = Math.floor(w/4);
|
||||
g.clearRect(0, 0, g.getWidth()-1, yo).setFontAlign(0, 0, 0);
|
||||
g.setFont("Vector", 16).setColor("#fff").drawString("Score:"+this.score.toString(), g.getWidth()/2, 8);
|
||||
g.setFont("Vector", 16).setColor(g.theme.fg).drawString("Score:"+this.score.toString(), g.getWidth()/2, 8);
|
||||
this.drawBRect(xo-3, yo-3, xo+w+2, yo+h+2, 4, "#a88", "#caa", false);
|
||||
for (y=0; y<4; ++y)
|
||||
for (x=0; x<4; ++x) {
|
||||
|
|
|
@ -48,7 +48,7 @@ function draw_compass(awa, aws, twa, tws) {
|
|||
g.clearRect(0, 24, g.getWidth()-1, g.getHeight()-1);
|
||||
fh = w*0.15;
|
||||
g.setColor(0, 0, 1).fillPoly(hullpoly);
|
||||
g.setFontVector(fh).setColor(1, 1, 1);
|
||||
g.setFontVector(fh).setColor(g.theme.fg);
|
||||
g.setFontAlign(0, 0, 0).drawString("0", cx, 24+fh/2);
|
||||
g.setFontAlign(0, 0, 1).drawString("90", g.getWidth()-12-fh, cy);
|
||||
g.setFontAlign(0, 0, 2).drawString("180", cx, g.getHeight()-fh/2);
|
||||
|
@ -64,7 +64,7 @@ function draw_compass(awa, aws, twa, tws) {
|
|||
if (tws>0) g.setColor(1, 0, 0).drawString(tws.toFixed(1), cx, cy+0.32*w);
|
||||
if (settings.truewind && typeof gps_course.spd!=='undefined') {
|
||||
spd = gps_course.spd/1.852;
|
||||
g.setColor(1, 1, 1).setFont("7x11Numeric7Seg", w*0.03).setFontAlign(-1, 1, 0).drawString(spd.toFixed(1), 1, g.getHeight()-1);
|
||||
g.setColor(g.theme.fg).setFont("7x11Numeric7Seg", w*0.03).setFontAlign(-1, 1, 0).drawString(spd.toFixed(1), 1, g.getHeight()-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue