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/widgets.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/widgets.py')
| -rw-r--r-- | wasp/widgets.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/wasp/widgets.py b/wasp/widgets.py index 40523ce..dec213e 100644 --- a/wasp/widgets.py +++ b/wasp/widgets.py @@ -235,13 +235,13 @@ class Checkbox(): draw = wasp.watch.drawable im = self._im if self.state: - c1 = wasp.system.theme('slider-default') - c2 = draw.lighten(c1, 15) + c1 = wasp.system.theme('ui') + c2 = draw.lighten(c1, wasp.system.theme('contrast')) fg = c2 else: c1 = 0 c2 = 0 - fg = wasp.system.theme('accent-lo') + fg = wasp.system.theme('mid') # Draw checkbox on the right margin if there is a label, otherwise # draw at the natural location x = 239 - 32 - 4 if im[2] else im[0] @@ -283,10 +283,10 @@ class Slider(): y = self._y color = self._color if self._color is None: - self._color = wasp.system.theme('slider-default') + self._color = wasp.system.theme('ui') color = self._color if self._lowlight is None: - self._lowlight = draw.lighten(color, 15) + self._lowlight = draw.lighten(color, wasp.system.theme('contrast')) light = self._lowlight knob_x = x + ((_SLIDER_TRACK * self.value) // (self._steps-1)) @@ -344,7 +344,7 @@ class Spinner(): """Draw the slider.""" draw = watch.drawable im = self._im - fg = draw.lighten(wasp.system.theme('slider-default'), 15) + fg = draw.lighten(wasp.system.theme('ui'), wasp.system.theme('contrast')) draw.blit(icons.up_arrow, im[0]+30-8, im[1]+20, fg) draw.blit(icons.down_arrow, im[0]+30-8, im[1]+120-20-9, fg) self.update() |
