add audio volume slider
This commit is contained in:
parent
141c64a0bb
commit
ebb66dee21
1 changed files with 18 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ ColumnLayout {
|
|||
StyledText {
|
||||
Layout.column: 1
|
||||
Layout.row: 1
|
||||
text: "Speakers"
|
||||
text: "Device"
|
||||
}
|
||||
|
||||
StyledComboBox {
|
||||
|
|
@ -36,6 +36,23 @@ ColumnLayout {
|
|||
Pipewire.setSink(Pipewire.sinks[index]);
|
||||
}
|
||||
}
|
||||
|
||||
StyledText {
|
||||
Layout.column: 1
|
||||
Layout.row: 2
|
||||
text: "Volume"
|
||||
}
|
||||
|
||||
StyledSlider {
|
||||
Layout.column: 2
|
||||
Layout.row: 2
|
||||
from: 0.0
|
||||
to: 1.0
|
||||
value: Pipewire.volume
|
||||
onMoved: {
|
||||
Pipewire.setVolume(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue