diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2021-01-03 14:47:23 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2021-01-03 14:47:23 (GMT) |
| commit | 0ab34249fa925c842935dea97b8bbffc62e5c7eb (patch) | |
| tree | 724f547e5c11852108c7d11bf44417e351011323 | |
| parent | 8ed253706289d50ca56088a88dc5d0a71f89839d (diff) | |
apps: settings: Use theme colours for text labels
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
| -rw-r--r-- | wasp/apps/settings.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/wasp/apps/settings.py b/wasp/apps/settings.py index 0eb7cc2..da282e6 100644 --- a/wasp/apps/settings.py +++ b/wasp/apps/settings.py @@ -55,9 +55,11 @@ class SettingsApp(): def _draw(self): """Redraw the display from scratch.""" + draw = wasp.watch.drawable self._current_setting = self._settings[self._sett_index % len(self._settings)] - wasp.watch.drawable.fill() - wasp.watch.drawable.string(self._current_setting, 0, 6, width=240) + draw.fill() + draw.set_color(wasp.system.theme('bright')) + draw.string(self._current_setting, 0, 6, width=240) if self._current_setting == 'Brightness': self._slider.value = wasp.system.brightness - 1 elif self._current_setting == 'Notification Level': @@ -65,6 +67,7 @@ class SettingsApp(): self._update() def _update(self): + draw = wasp.watch.drawable if self._current_setting == 'Brightness': if wasp.system.brightness == 3: say = "High" @@ -81,5 +84,6 @@ class SettingsApp(): else: say = "Silent" self._nfy_slider.update() - wasp.watch.drawable.string(say, 0, 150, width=240) + draw.set_color(wasp.system.theme('bright')) + draw.string(say, 0, 150, width=240) self._scroll_indicator.draw() |
