diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-04 22:11:03 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-04 22:11:03 +1000 |
| commit | a575245d7b9f084110ce062b35d908ceeda260ab (patch) | |
| tree | 72e727d41577c99126f94421681eb0f17592c93d /modules/osd/Content.qml | |
| parent | feat: audio osd (diff) | |
| download | caelestia-shell-a575245d7b9f084110ce062b35d908ceeda260ab.tar.gz caelestia-shell-a575245d7b9f084110ce062b35d908ceeda260ab.tar.bz2 caelestia-shell-a575245d7b9f084110ce062b35d908ceeda260ab.zip | |
feat: brightness osd
Diffstat (limited to 'modules/osd/Content.qml')
| -rw-r--r-- | modules/osd/Content.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/osd/Content.qml b/modules/osd/Content.qml index daab4e2..b224bf6 100644 --- a/modules/osd/Content.qml +++ b/modules/osd/Content.qml @@ -7,7 +7,7 @@ import QtQuick Column { id: root - required property ShellScreen screen + required property Brightness.Monitor monitor padding: Appearance.padding.large @@ -35,6 +35,8 @@ Column { VerticalSlider { icon: "brightness_6" + value: root.monitor?.brightness ?? 0 + onMoved: root.monitor?.setBrightness(value) implicitWidth: OsdConfig.sizes.sliderWidth implicitHeight: OsdConfig.sizes.sliderHeight |