Merge pull request #3917 from RKBoss6/modclk

[Modern Clock] Fix clearing of date
master
thyttan 2025-07-01 20:19:02 +02:00 committed by GitHub
commit 2784c1b3b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
0.01: App created w/ clockInfos, bold font, date and time.
0.02: Added text truncation for long ClockInfo strings.
0.03: Added small inline Clock Info next to date
0.04: Fix date not clearing

View File

@ -209,7 +209,7 @@ let draw = function() {
g.setFont("Vector",16);
g.setFontAlign(1,0); // align center bottom
// pad the date - this clears the background if the date were to change length
var dateStr = require("locale").dow(new Date(), 1)+", " +new Date().getDate();
var dateStr = " "+require("locale").dow(new Date(), 1)+", " +new Date().getDate();
//print(g.stringHeight(dateStr));
g.drawString(" "+dateStr+" ", g.getWidth()/2+6, Y+9, true /*clear background*/);

View File

@ -3,7 +3,7 @@
"name": "Modern Clock",
"shortName":"Modern Clk",
"icon": "icon.png",
"version":"0.03",
"version":"0.04",
"description": "A modern, simple clock, with three ClockInfos and Fast Loading",
"type":"clock",
"tags": "clock,clkinfo",