mirror of https://github.com/espruino/BangleApps
use bigger font for day of week and date to improve visibility
parent
2f45d83e32
commit
19c51591cd
|
@ -1,3 +1,5 @@
|
||||||
|
require("FontVGA8").add(Graphics);
|
||||||
|
|
||||||
const COLOUR_BLACK = 0x0;
|
const COLOUR_BLACK = 0x0;
|
||||||
const COLOUR_WHITE = 0xffff;
|
const COLOUR_WHITE = 0xffff;
|
||||||
//const COLOUR_DARK_GREY = "#3F3F3F";
|
//const COLOUR_DARK_GREY = "#3F3F3F";
|
||||||
|
@ -132,11 +134,11 @@ function draw() {
|
||||||
g.drawString(timeStr, x, y + 20);
|
g.drawString(timeStr, x, y + 20);
|
||||||
// draw date
|
// draw date
|
||||||
y += 35;
|
y += 35;
|
||||||
g.setFontAlign(0, 0, 1).setFont("6x8");
|
g.setFontAlign(0, 0, 1).setFont("VGA8");
|
||||||
g.drawString(dateStr, g.getWidth() - 8, g.getHeight() / 2);
|
g.drawString(dateStr, g.getWidth() - 8, g.getHeight() / 2 - 10);
|
||||||
// draw the day of the week
|
// draw the day of the week
|
||||||
g.setFontAlign(0, 0, 3).setFont("6x8");
|
g.setFontAlign(0, 0, 3).setFont("VGA8");
|
||||||
g.drawString(dowStr, 8, g.getHeight() / 2);
|
g.drawString(dowStr, 8, g.getHeight() / 2 - 10);
|
||||||
// queue draw in one minute
|
// queue draw in one minute
|
||||||
queueDraw();
|
queueDraw();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue