mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Audio Service: more abstraction
This commit is contained in:
@@ -10,10 +10,6 @@ Item {
|
||||
width: pill.width
|
||||
height: pill.height
|
||||
|
||||
Component.onCompleted: {
|
||||
console.log("[Volume] settingsPanel received:", !!settingsPanel)
|
||||
}
|
||||
|
||||
// Used to avoid opening the pill on Quickshell startup
|
||||
property bool firstVolumeReceived: false
|
||||
|
||||
@@ -50,9 +46,9 @@ Item {
|
||||
|
||||
onWheel: function (angle) {
|
||||
if (angle > 0) {
|
||||
Audio.volumeIncrement()
|
||||
Audio.increaseVolume()
|
||||
} else if (angle < 0) {
|
||||
Audio.volumeDecrement()
|
||||
Audio.decreaseVolume()
|
||||
}
|
||||
}
|
||||
onClicked: {
|
||||
|
||||
@@ -91,7 +91,7 @@ ColumnLayout {
|
||||
repeat: true
|
||||
onTriggered: {
|
||||
if (Math.abs(localVolume - Audio.volume) >= 0.01) {
|
||||
Audio.volumeSet(localVolume)
|
||||
Audio.setVolume(localVolume)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user