Skip to content

Commit fb8ca4e

Browse files
committed
twotwoclock 0.03: Fix time's border when drawing over a solid color background
1 parent 37ca389 commit fb8ca4e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

apps/twotwoclock/ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
0.01: New Clock!
2-
0.02: Clockinfos now save under correct name, and wrap correctly to >1 line
2+
0.02: Clockinfos now save under correct name, and wrap correctly to >1 line
3+
0.03: Fix time's border when drawing over a solid color background

apps/twotwoclock/app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,9 @@ for (var i=0;i<10;i++)
7373
var mn = d.getMinutes().toString().padStart(2,0);
7474
var date = require("locale").date(new Date()).split(" ").slice(0,2).join(" ").toUpperCase();
7575
var x = 6, y = 16, w = 55, h = 67, datesz = 20, s=5;
76-
g.reset();
7776
background.fillRect(x, y, x + w*2, y + h*2 + datesz);
7877
var dx = x+w, dy = y+h+datesz-10;
79-
g.setFont("LECO1976Regular").setFontAlign(0,0);
78+
g.reset().setFont("LECO1976Regular").setFontAlign(0,0);
8079
g.setColor(g.theme.bg).drawString(date, dx+3,dy-3).drawString(date, dx+3,dy+3);
8180
g.drawString(date, dx-3,dy-3).drawString(date, dx-3,dy+3);
8281
g.drawString(date, dx,dy-3).drawString(date, dx,dy+3);

apps/twotwoclock/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ "id": "twotwoclock",
22
"name": "TwoTwo Clock",
33
"shortName":"22 Clock",
4-
"version":"0.02",
4+
"version":"0.03",
55
"description": "A clock with the time split over two lines, with custom backgrounds and two ClockInfos",
66
"icon": "icon.png",
77
"type": "clock",

0 commit comments

Comments
 (0)