mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-04 22:49:50 -05:00
update volume icons
This commit is contained in:
parent
468291c9ea
commit
83d7dc47c4
10 changed files with 34 additions and 77 deletions
|
|
@ -67,12 +67,14 @@ Scope {
|
|||
|
||||
IconImage {
|
||||
implicitSize: 30
|
||||
source: {
|
||||
if (Pipewire.defaultAudioSink?.audio.muted) {
|
||||
return "root:resources/volume/volume-mute.svg";
|
||||
} else {
|
||||
return "root:resources/volume/volume-full.svg";
|
||||
}
|
||||
source: if (Pipewire.defaultAudioSink?.audio.muted) {
|
||||
return "image://icon/audio-volume-muted";
|
||||
} else if (Pipewire.defaultAudioSink?.audio.volume > 0.66) {
|
||||
return "image://icon/audio-volume-high";
|
||||
} else if (Pipewire.defaultAudioSink?.audio.volume > 0.33) {
|
||||
return "image://icon/audio-volume-medium";
|
||||
} else {
|
||||
return "image://icon/audio-volume-low";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue