summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkozova1 <mug66kk@gmail.com>2020-11-26 11:46:59 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-11-26 21:09:22 (GMT)
commitb1326e16092babc7d353f2fdc724b6decc63c129 (patch)
tree5251e24779dbfd89b0eb28c343f2a4e6fbeeb840
parent02777d5dff0989a7b1c5e1a5838a281ae3ad4240 (diff)
apps: settings: Fix initial slider value
When the Settings app is launched, it shows the "Mid" text (this is correct), but the slider is at the lowest position. After moving the slider it functions correctly, so this fix is mostly cosmetic. Signed-off-by: kozova1 <mug66kk@gmail.com>
-rw-r--r--wasp/apps/settings.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wasp/apps/settings.py b/wasp/apps/settings.py
index 2bad080..2ed3217 100644
--- a/wasp/apps/settings.py
+++ b/wasp/apps/settings.py
@@ -19,6 +19,7 @@ class SettingsApp():
def __init__(self):
self._slider = wasp.widgets.Slider(3, 10, 90)
+ self._slider.value = wasp.system.brightness - 1
def foreground(self):
self._draw()