From c48f411bcbc34afca9cdef713ef020767bd08430 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 17 Sep 2025 19:46:42 +1000 Subject: osd: fix anim when appear on change --- modules/osd/Content.qml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'modules/osd/Content.qml') diff --git a/modules/osd/Content.qml b/modules/osd/Content.qml index f2bb51c..639de77 100644 --- a/modules/osd/Content.qml +++ b/modules/osd/Content.qml @@ -14,6 +14,12 @@ Item { required property Brightness.Monitor monitor required property var visibilities + required property real volume + required property bool muted + required property real sourceVolume + required property bool sourceMuted + required property real brightness + implicitWidth: layout.implicitWidth + Appearance.padding.large * 2 implicitHeight: layout.implicitHeight + Appearance.padding.large * 2 @@ -38,8 +44,8 @@ Item { FilledSlider { anchors.fill: parent - icon: Icons.getVolumeIcon(value, Audio.muted) - value: Audio.volume + icon: Icons.getVolumeIcon(value, root.muted) + value: root.volume onMoved: Audio.setVolume(value) } } @@ -62,8 +68,8 @@ Item { FilledSlider { anchors.fill: parent - icon: Icons.getMicVolumeIcon(value, Audio.sourceMuted) - value: Audio.sourceVolume + icon: Icons.getMicVolumeIcon(value, root.sourceMuted) + value: root.sourceVolume onMoved: Audio.setSourceVolume(value) } } @@ -91,7 +97,7 @@ Item { anchors.fill: parent icon: `brightness_${(Math.round(value * 6) + 1)}` - value: root.monitor?.brightness ?? 0 + value: root.brightness onMoved: root.monitor?.setBrightness(value) } } -- cgit v1.2.3-freya