diff options
| author | Ezekiel Gonzales <141341590+notsoeazy@users.noreply.github.com> | 2026-01-03 16:04:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-03 19:04:00 +1100 |
| commit | 49b94e7b188010d70920590a50f8441373442dfd (patch) | |
| tree | 463fe914ebcb6cb6f82529ea3c2879d5441bc239 /modules/bar/Bar.qml | |
| parent | bluetooth: make device sort order stable (diff) | |
| download | caelestia-shell-49b94e7b188010d70920590a50f8441373442dfd.tar.gz caelestia-shell-49b94e7b188010d70920590a50f8441373442dfd.tar.bz2 caelestia-shell-49b94e7b188010d70920590a50f8441373442dfd.zip | |
services: add brightnessIncrement config property (#1010)
* feat: Add brightnessIncrement config property
* birghtness increment applies on bar scroll
Diffstat (limited to 'modules/bar/Bar.qml')
| -rw-r--r-- | modules/bar/Bar.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index 1dceea4..cb384e3 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -95,9 +95,9 @@ ColumnLayout { // Brightness scroll on bottom half const monitor = Brightness.getMonitorForScreen(screen); if (angleDelta.y > 0) - monitor.setBrightness(monitor.brightness + 0.1); + monitor.setBrightness(monitor.brightness + Config.services.brightnessIncrement); else if (angleDelta.y < 0) - monitor.setBrightness(monitor.brightness - 0.1); + monitor.setBrightness(monitor.brightness - Config.services.brightnessIncrement); } } |