bump dots again

This commit is contained in:
kossLAN 2025-11-03 14:55:33 -05:00
parent 99eb6956bd
commit 468291c9ea
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8

View file

@ -24,6 +24,11 @@ Scope {
root.shouldShowOsd = true; root.shouldShowOsd = true;
hideTimer.restart(); hideTimer.restart();
} }
function onMutedChanged() {
root.shouldShowOsd = true;
hideTimer.restart();
}
} }
property bool shouldShowOsd: false property bool shouldShowOsd: false
@ -52,6 +57,8 @@ Scope {
// radius: 8 // radius: 8
RowLayout { RowLayout {
spacing: 10
anchors { anchors {
fill: parent fill: parent
leftMargin: 10 leftMargin: 10
@ -60,15 +67,23 @@ Scope {
IconImage { IconImage {
implicitSize: 30 implicitSize: 30
source: "root:resources/volume/volume-full.svg" source: {
if (Pipewire.defaultAudioSink?.audio.muted) {
return "root:resources/volume/volume-mute.svg";
} else {
return "root:resources/volume/volume-full.svg";
}
}
} }
Rectangle { Rectangle {
id: sliderBackground id: sliderBackground
Layout.fillWidth: true Layout.fillWidth: true
implicitHeight: 10 implicitHeight: 10
radius: 20 radius: height / 2
color: ShellSettings.colors.inactive color: "transparent"
border.color: ShellSettings.colors.active_translucent
border.width: 1
layer.enabled: true layer.enabled: true
layer.effect: OpacityMask { layer.effect: OpacityMask {
@ -82,13 +97,13 @@ Scope {
Rectangle { Rectangle {
color: ShellSettings.colors.active color: ShellSettings.colors.active
implicitWidth: parent.width * (Pipewire.defaultAudioSink?.audio.volume ?? 0)
anchors { anchors {
left: parent.left left: parent.left
top: parent.top top: parent.top
bottom: parent.bottom bottom: parent.bottom
} }
implicitWidth: parent.width * (Pipewire.defaultAudioSink?.audio.volume ?? 0)
} }
} }
} }