summaryrefslogtreecommitdiff
path: root/modules/osd/Content.qml
diff options
context:
space:
mode:
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