fix(large clock): font size
parent
19a2f80e5c
commit
1efadb816d
|
|
@ -5,3 +5,4 @@
|
||||||
0.05: Add support for 12 hour time
|
0.05: Add support for 12 hour time
|
||||||
0.06: Allow to disable BTN1 and BTN3 buttons
|
0.06: Allow to disable BTN1 and BTN3 buttons
|
||||||
0.07: Don't clear all intervals during initialisation
|
0.07: Don't clear all intervals during initialisation
|
||||||
|
0.08: fix font size
|
||||||
|
|
|
||||||
|
|
@ -140,13 +140,13 @@ function drawTime(d) {
|
||||||
g.clearRect(0, 24, moonX - moonR - 10, 239);
|
g.clearRect(0, 24, moonX - moonR - 10, 239);
|
||||||
g.setColor(1, 1, 1);
|
g.setColor(1, 1, 1);
|
||||||
g.setFontAlign(-1, -1);
|
g.setFontAlign(-1, -1);
|
||||||
g.setFont("Vector", 100);
|
g.setFont("Vector", 130);
|
||||||
g.drawString(hours, 40, 24, true);
|
g.drawString(hours, 40, 24, true);
|
||||||
g.setColor(1, 50, 1);
|
g.setColor(1, 50, 1);
|
||||||
g.drawString(minutes, 40, 135, true);
|
g.drawString(minutes, 40, 130, true);
|
||||||
g.setFont("Vector", 20);
|
g.setFont("Vector", 20);
|
||||||
g.setRotation(3);
|
g.setRotation(3);
|
||||||
g.drawString(`${dow} ${day} ${month}`, 50, 10, true);
|
g.drawString(`${dow} ${day} ${month}`, 60, 10, true);
|
||||||
g.drawString(year, is12Hour ? 46 : 75, 205, true);
|
g.drawString(year, is12Hour ? 46 : 75, 205, true);
|
||||||
lastMinutes = minutes;
|
lastMinutes = minutes;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue