1
0
Fork 0

widgets: Use theme colours for text labels

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
Daniel Thompson 2021-01-03 14:48:19 +00:00
parent 0ab34249fa
commit 75a1a15f45

View file

@ -226,6 +226,7 @@ class Checkbox():
draw = wasp.watch.drawable
im = self._im
if im[2]:
draw.set_color(wasp.system.theme('bright'))
draw.set_font(fonts.sans24)
draw.string(im[2], im[0], im[1]+6)
self.update()
@ -353,6 +354,7 @@ class Spinner():
"""Update the spinner value."""
draw = watch.drawable
im = self._im
draw.set_color(wasp.system.theme('bright'))
draw.set_font(fonts.sans28)
s = str(self.value)
if len(s) < im[4]: