summaryrefslogtreecommitdiff
path: root/wasp/apps/stopwatch.py
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-06-12 07:53:32 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-06-12 07:53:32 (GMT)
commit823e85584d3363f6a6a775c3ff6eca55e6c7e00d (patch)
tree04fc4b346d3474996dcb665e88b2a6ab30c3339f /wasp/apps/stopwatch.py
parentbd41368d2b53091d6f3a841ee87e06621796ed30 (diff)
apps: [steps,stopwatch]: Increase font size of clock
We also change the colour scheme slightly because the increased size of the clock interferes visually with the main display when it is bright white. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/apps/stopwatch.py')
-rw-r--r--wasp/apps/stopwatch.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/wasp/apps/stopwatch.py b/wasp/apps/stopwatch.py
index f953e6f..2b7e7e8 100644
--- a/wasp/apps/stopwatch.py
+++ b/wasp/apps/stopwatch.py
@@ -82,6 +82,7 @@ class StopwatchApp():
t = ''
draw.set_font(fonts.sans24)
+ draw.set_color(0xfff0)
w = fonts.width(fonts.sans24, t)
draw.string(t, 0, y + (i*24), 240)
@@ -111,8 +112,9 @@ class StopwatchApp():
now = wasp.watch.rtc.get_localtime()
if now[4] != self._last_clock[4]:
t1 = '{:02}:{:02}'.format(now[3], now[4])
- draw.set_font(fonts.sans24)
- draw.string(t1, 48, 16, 240-96)
+ draw.set_font(fonts.sans28)
+ draw.set_color(0x7bef)
+ draw.string(t1, 48, 12, 240-96)
self._last_clock = now
self._meter.update()
@@ -127,6 +129,7 @@ class StopwatchApp():
t2 = '{:02}'.format(centisecs)
draw.set_font(fonts.sans36)
+ draw.set_color(0xffff)
w = fonts.width(fonts.sans36, t1)
draw.string(t1, 180-w, 120-36)
draw.fill(0, 0, 120-36, 180-w, 36)