twotwoclock 0.03: Fix time's border when drawing over a solid color background

master
Gordon Williams 2025-05-14 16:14:08 +01:00
parent 37ca389a52
commit fb8ca4e9f4
3 changed files with 4 additions and 4 deletions

View File

@ -1,2 +1,3 @@
0.01: New Clock!
0.02: Clockinfos now save under correct name, and wrap correctly to >1 line
0.03: Fix time's border when drawing over a solid color background

View File

@ -73,10 +73,9 @@ for (var i=0;i<10;i++)
var mn = d.getMinutes().toString().padStart(2,0);
var date = require("locale").date(new Date()).split(" ").slice(0,2).join(" ").toUpperCase();
var x = 6, y = 16, w = 55, h = 67, datesz = 20, s=5;
g.reset();
background.fillRect(x, y, x + w*2, y + h*2 + datesz);
var dx = x+w, dy = y+h+datesz-10;
g.setFont("LECO1976Regular").setFontAlign(0,0);
g.reset().setFont("LECO1976Regular").setFontAlign(0,0);
g.setColor(g.theme.bg).drawString(date, dx+3,dy-3).drawString(date, dx+3,dy+3);
g.drawString(date, dx-3,dy-3).drawString(date, dx-3,dy+3);
g.drawString(date, dx,dy-3).drawString(date, dx,dy+3);

View File

@ -1,7 +1,7 @@
{ "id": "twotwoclock",
"name": "TwoTwo Clock",
"shortName":"22 Clock",
"version":"0.02",
"version":"0.03",
"description": "A clock with the time split over two lines, with custom backgrounds and two ClockInfos",
"icon": "icon.png",
"type": "clock",