diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-12-31 19:12:38 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-12-31 19:22:54 (GMT) |
| commit | ad9714b0dc2f2053d3d31a8cd013d456fefdc93d (patch) | |
| tree | af166d2ae2f69beb637dd036dc41286e64f81472 /wasp/apps/chrono.py | |
| parent | 1eada36ff4953cb6b52e249c2908e5c74a7917d1 (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/chrono.py')
| -rw-r--r-- | wasp/apps/chrono.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/wasp/apps/chrono.py b/wasp/apps/chrono.py index a327127..3eae3a1 100644 --- a/wasp/apps/chrono.py +++ b/wasp/apps/chrono.py @@ -58,9 +58,8 @@ class ChronoApp(): True then a full redraw is be performed. """ draw = wasp.watch.drawable - hi = wasp.system.theme('accent-hi') - mid = wasp.system.theme('accent-mid') - lo = wasp.system.theme('accent-lo') + hi = wasp.system.theme('bright') + c1 = draw.darken(wasp.system.theme('spot1'), wasp.system.theme('contrast')) if redraw: now = wasp.watch.rtc.get_localtime() @@ -72,7 +71,7 @@ class ChronoApp(): wasp.system.bar.draw() # Draw the dividers - draw.set_color(mid) + draw.set_color(wasp.system.theme('mid')) for theta in range(12): draw.polar(120, 120, theta * 360 // 12, 110, 118, 3) @@ -98,5 +97,5 @@ class ChronoApp(): hh = (30 * (self._hh % 12)) + (self._mm / 2) mm = 6 * self._mm draw.polar(120, 120, hh, 5, 75, 7, hi) - draw.polar(120, 120, hh, 5, 60, 3, lo) + draw.polar(120, 120, hh, 5, 60, 3, draw.darken(c1, 2)) draw.polar(120, 120, mm, 5, 106, 5, hi) |
