summaryrefslogtreecommitdiff
path: root/modules/osd/Content.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-04 22:11:03 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-04 22:11:03 +1000
commita575245d7b9f084110ce062b35d908ceeda260ab (patch)
tree72e727d41577c99126f94421681eb0f17592c93d /modules/osd/Content.qml
parentfeat: audio osd (diff)
downloadcaelestia-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.qml4
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