forked from FOSS/BangleApps
commit
a8825373ac
|
@ -4040,7 +4040,7 @@
|
|||
{
|
||||
"id": "antonclk",
|
||||
"name": "Anton Clock",
|
||||
"version": "0.02",
|
||||
"version": "0.03",
|
||||
"description": "A simple clock using the bold Anton font.",
|
||||
"icon": "app.png",
|
||||
"screenshots": [{"url":"screenshot.png"}],
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
0.01: New App!
|
||||
0.02: Load widgets after setUI so widclk knows when to hide
|
||||
0.03: Clock now shows day of week under date.
|
||||
|
|
|
@ -23,6 +23,7 @@ function draw() {
|
|||
var date = new Date();
|
||||
var timeStr = require("locale").time(date,1);
|
||||
var dateStr = require("locale").date(date).toUpperCase();
|
||||
var dowStr = require("locale").dow(date).toUpperCase();
|
||||
// draw time
|
||||
g.setFontAlign(0,0).setFont("Anton");
|
||||
g.clearRect(0,y-40,g.getWidth(),y+35); // clear the background
|
||||
|
@ -32,6 +33,10 @@ function draw() {
|
|||
g.setFontAlign(0,0).setFont("6x8",2);
|
||||
g.clearRect(0,y-8,g.getWidth(),y+8); // clear the background
|
||||
g.drawString(dateStr,x,y);
|
||||
//draw day of week
|
||||
y += 16;
|
||||
g.clearRect(0,y-8,g.getWidth(),y+8); // clear the background
|
||||
g.drawString(dowStr,x,y);
|
||||
// queue draw in one minute
|
||||
queueDraw();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue