Skip to content

Commit c2962bb

Browse files
author
thyttan
committed
ateatimer: make the time green the whole first second of the timer
Also use darkGreen on light theme and vice versa.
1 parent a81f468 commit c2962bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/ateatimer/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
let appRect = Bangle.appRect;
44
let middleY = appRect.y+appRect.w/2;
55
let middleRect = {x:appRect.x, y:middleY-20, w:appRect.w, h:40}
6-
let GREEN = g.theme.dark?0x03E0:0x07E0;
6+
let GREEN = g.theme.dark?0x07E0:0x03E0;
77

88
let intervalID;
99

@@ -75,7 +75,7 @@ function startTimer() {
7575
g.reset();
7676

7777
// Start the secondary timer to update the display
78-
intervalID = setInterval(updateDisplay, 1000);
78+
setTimeout('setintervalID = setInterval(updateDisplay, 1000);', 1000);
7979
}
8080

8181
function scheduleTimer() {

0 commit comments

Comments
 (0)