mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-04 22:49:50 -05:00
bump dots again
This commit is contained in:
parent
99eb6956bd
commit
468291c9ea
1 changed files with 20 additions and 5 deletions
|
|
@ -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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue