use bigger font for day of week and date to improve visibility

pull/3294/head
Paul Arguillère 2024-03-25 16:35:15 +01:00
parent 2f45d83e32
commit 19c51591cd
1 changed files with 9 additions and 7 deletions

View File

@ -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();
} }