From a575245d7b9f084110ce062b35d908ceeda260ab Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 4 May 2025 22:11:03 +1000 Subject: feat: brightness osd --- modules/osd/Content.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/osd/Content.qml') 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 -- cgit v1.2.3-freya