summaryrefslogtreecommitdiff
path: root/wasp/apps/stopwatch.py
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-12-31 19:12:38 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-12-31 19:22:54 (GMT)
commitad9714b0dc2f2053d3d31a8cd013d456fefdc93d (patch)
treeaf166d2ae2f69beb637dd036dc41286e64f81472 /wasp/apps/stopwatch.py
parent1eada36ff4953cb6b52e249c2908e5c74a7917d1 (diff)
manager: Recategorize the theme labels for apps
By default bright and mid are white/grey tones, the ui widgets are blue and the spot colours are different variants of orange. 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, 4 insertions, 3 deletions
diff --git a/wasp/apps/stopwatch.py b/wasp/apps/stopwatch.py
index 43166a6..0d572af 100644
--- a/wasp/apps/stopwatch.py
+++ b/wasp/apps/stopwatch.py
@@ -88,6 +88,9 @@ class StopwatchApp():
return
y = 240 - 6 - (len(splits) * 24)
+ draw.set_font(fonts.sans24)
+ draw.set_color(wasp.system.theme('mid'))
+
n = self._nsplits
for i, s in enumerate(splits):
centisecs = s
@@ -99,8 +102,6 @@ class StopwatchApp():
t = '# {} {:02}:{:02}.{:02}'.format(n, minutes, secs, centisecs)
n -= 1
- draw.set_font(fonts.sans24)
- draw.set_color(0xe73c)
w = fonts.width(fonts.sans24, t)
draw.string(t, 0, y + (i*24), 240)
@@ -139,7 +140,7 @@ class StopwatchApp():
draw = wasp.watch.drawable
draw.set_font(fonts.sans36)
- draw.set_color(0xc67f)
+ draw.set_color(draw.lighten(wasp.system.theme('ui'), wasp.system.theme('contrast')))
w = fonts.width(fonts.sans36, t1)
draw.string(t1, 180-w, 120-36)
draw.fill(0, 0, 120-36, 180-w, 36)