diff options
| author | kozova1 <mug66kk@gmail.com> | 2020-12-05 12:49:56 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel.thompson@linaro.org> | 2020-12-05 20:51:27 (GMT) |
| commit | 502efa74934e554a9eb6a9b29334551186cad19e (patch) | |
| tree | fda375903243e21804be9f2f27e63c217cfa7294 | |
| parent | 896a4e1a8dd1344b118b1048a0e8d1411de72a13 (diff) | |
apps: settings: Add Scroll Indicator
This commit adds a ScrollIndicator widget to the settings app,
to help users realize they can scroll there.
Signed-off-by: kozova1 <mug66kk@gmail.com>
| -rw-r--r-- | res/SettingsApp.png | bin | 5340 -> 5456 bytes | |||
| -rw-r--r-- | wasp/apps/settings.py | 2 |
2 files changed, 2 insertions, 0 deletions
diff --git a/res/SettingsApp.png b/res/SettingsApp.png Binary files differindex 35e4fd2..48ead66 100644 --- a/res/SettingsApp.png +++ b/res/SettingsApp.png diff --git a/wasp/apps/settings.py b/wasp/apps/settings.py index 8dae9c0..0eb7cc2 100644 --- a/wasp/apps/settings.py +++ b/wasp/apps/settings.py @@ -20,6 +20,7 @@ class SettingsApp(): def __init__(self): self._slider = wasp.widgets.Slider(3, 10, 90) self._nfy_slider = wasp.widgets.Slider(3, 10, 90) + self._scroll_indicator = wasp.widgets.ScrollIndicator() self._settings = ['Brightness', 'Notification Level'] self._sett_index = 0 self._current_setting = self._settings[0] @@ -81,3 +82,4 @@ class SettingsApp(): say = "Silent" self._nfy_slider.update() wasp.watch.drawable.string(say, 0, 150, width=240) + self._scroll_indicator.draw() |
