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>
This commit is contained in:
kozova1 2020-12-05 14:49:56 +02:00 committed by Daniel Thompson
parent 896a4e1a8d
commit 502efa7493
2 changed files with 2 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -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()