diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-04 20:45:34 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-04 20:45:34 +1000 |
| commit | fb471f1023ab4991c124d0bc432028d95d7b7300 (patch) | |
| tree | 6e46278fabc8f4b584cd668703bfe28e3d78ec8d /modules/osd/Content.qml | |
| parent | appearance: better on colours (diff) | |
| download | caelestia-shell-fb471f1023ab4991c124d0bc432028d95d7b7300.tar.gz caelestia-shell-fb471f1023ab4991c124d0bc432028d95d7b7300.tar.bz2 caelestia-shell-fb471f1023ab4991c124d0bc432028d95d7b7300.zip | |
feat: audio osd
Diffstat (limited to 'modules/osd/Content.qml')
| -rw-r--r-- | modules/osd/Content.qml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/modules/osd/Content.qml b/modules/osd/Content.qml new file mode 100644 index 0000000..daab4e2 --- /dev/null +++ b/modules/osd/Content.qml @@ -0,0 +1,42 @@ +import "root:/widgets" +import "root:/services" +import "root:/config" +import Quickshell +import QtQuick + +Column { + id: root + + required property ShellScreen screen + + padding: Appearance.padding.large + + anchors.verticalCenter: parent.verticalCenter + anchors.right: parent.right + + spacing: Appearance.spacing.normal + + VerticalSlider { + icon: { + if (Audio.muted) + return "no_sound"; + if (value >= 0.5) + return "volume_up"; + if (value > 0) + return "volume_down"; + return "volume_mute"; + } + value: Audio.volume + onMoved: Audio.setVolume(value) + + implicitWidth: OsdConfig.sizes.sliderWidth + implicitHeight: OsdConfig.sizes.sliderHeight + } + + VerticalSlider { + icon: "brightness_6" + + implicitWidth: OsdConfig.sizes.sliderWidth + implicitHeight: OsdConfig.sizes.sliderHeight + } +} |