diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-02-12 17:44:55 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-02-12 17:44:55 +1100 |
| commit | 0426d245c8d863f18babdfbaf21c8673b0746feb (patch) | |
| tree | 32c78617d954ca6546b0225de68e0acc299e7bca /lua | |
| parent | 527374c72e1ec52e1d5814dbee3587ae100631dd (diff) | |
| download | tangara-fw-0426d245c8d863f18babdfbaf21c8673b0746feb.tar.gz | |
Scroll sensitivity configurable, but inverted
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/settings.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/settings.lua b/lua/settings.lua index 475b1722..bb5c8eb3 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -256,6 +256,20 @@ function settings.input() controls.scheme:set(scheme) end) + menu.content:Label { + text = "Scroll Sensitivity", + }:add_style(theme.settings_title) + + local sensitivity = menu.content:Slider { + w = lvgl.PCT(100), + h = 5, + range = { min = 5, max = 45 }, + value = controls.scroll_sensitivity:get(), + } + sensitivity:onevent(lvgl.EVENT.VALUE_CHANGED, function() + controls.scroll_sensitivity:set(sensitivity:value()) + end) + return menu end |
