mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Merge pull request #220 from ThatOneCalculator/refactor/audio-bar-widgets-click-consistency
refactor: consistent click behavior for volume & mic bar widgets
This commit is contained in:
@@ -99,11 +99,8 @@ Item {
|
||||
onRightClicked: {
|
||||
AudioService.setInputMuted(!AudioService.inputMuted)
|
||||
}
|
||||
}
|
||||
|
||||
Process {
|
||||
id: pwvucontrolProcess
|
||||
command: ["pwvucontrol"]
|
||||
running: false
|
||||
onMiddleClicked: {
|
||||
Quickshell.execDetached(["pwvucontrol"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ Item {
|
||||
autoHide: false // Important to be false so we can hover as long as we want
|
||||
text: Math.floor(AudioService.volume * 100) + "%"
|
||||
tooltipText: "Volume: " + Math.round(
|
||||
AudioService.volume * 100) + "%\nLeft click for advanced settings.\nScroll up/down to change volume."
|
||||
AudioService.volume * 100) + "%\nLeft click for advanced settings.\nScroll up/down to change volume.\nRight click to toggle mute."
|
||||
|
||||
onWheel: function (delta) {
|
||||
wheelAccumulator += delta
|
||||
@@ -82,13 +82,10 @@ Item {
|
||||
settingsPanel.open(screen)
|
||||
}
|
||||
onRightClicked: {
|
||||
pwvucontrolProcess.running = true
|
||||
AudioService.setMuted(!AudioService.muted)
|
||||
}
|
||||
onMiddleClicked: {
|
||||
Quickshell.execDetached(["pwvucontrol"]);
|
||||
}
|
||||
}
|
||||
|
||||
Process {
|
||||
id: pwvucontrolProcess
|
||||
command: ["pwvucontrol"]
|
||||
running: false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user