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:
Lemmy 2025-09-05 13:29:16 -04:00 committed by GitHub
commit 0915071299
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 14 deletions

View file

@ -99,11 +99,8 @@ Item {
onRightClicked: {
AudioService.setInputMuted(!AudioService.inputMuted)
}
onMiddleClicked: {
Quickshell.execDetached(["pwvucontrol"]);
}
Process {
id: pwvucontrolProcess
command: ["pwvucontrol"]
running: false
}
}

View file

@ -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
}
}