diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-17 19:46:42 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-17 19:46:42 +1000 |
| commit | c48f411bcbc34afca9cdef713ef020767bd08430 (patch) | |
| tree | accc4ea1dda5e4e6f634f5fe215e842940b1fe87 /modules/osd/Content.qml | |
| parent | notifs: fix dnd (diff) | |
| download | caelestia-shell-c48f411bcbc34afca9cdef713ef020767bd08430.tar.gz caelestia-shell-c48f411bcbc34afca9cdef713ef020767bd08430.tar.bz2 caelestia-shell-c48f411bcbc34afca9cdef713ef020767bd08430.zip | |
osd: fix anim when appear on change
Diffstat (limited to 'modules/osd/Content.qml')
| -rw-r--r-- | modules/osd/Content.qml | 16 |
1 files changed, 11 insertions, 5 deletions
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) } } |