1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

Allow toggling mute with right-click on bar (#1147)

This commit is contained in:
Aaron Tulino
2025-12-24 14:12:47 -07:00
committed by GitHub
parent 8e76789119
commit 6303304a10

View File

@@ -255,11 +255,14 @@ BasePill {
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton
acceptedButtons: Qt.RightButton
onWheel: function (wheelEvent) {
root.handleVolumeWheel(wheelEvent.angleDelta.y);
wheelEvent.accepted = true;
}
onClicked: {
AudioService.toggleMute();
}
}
}
@@ -280,11 +283,14 @@ BasePill {
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton
acceptedButtons: Qt.RightButton
onWheel: function (wheelEvent) {
root.handleMicWheel(wheelEvent.angleDelta.y);
wheelEvent.accepted = true;
}
onClicked: {
AudioService.toggleMicMute();
}
}
}
@@ -389,11 +395,14 @@ BasePill {
MouseArea {
id: audioWheelArea
anchors.fill: parent
acceptedButtons: Qt.NoButton
acceptedButtons: Qt.RightButton
onWheel: function (wheelEvent) {
root.handleVolumeWheel(wheelEvent.angleDelta.y);
wheelEvent.accepted = true;
}
onClicked: {
AudioService.toggleMute();
}
}
}
@@ -415,11 +424,14 @@ BasePill {
MouseArea {
id: micWheelArea
anchors.fill: parent
acceptedButtons: Qt.NoButton
acceptedButtons: Qt.RightButton
onWheel: function (wheelEvent) {
root.handleMicWheel(wheelEvent.angleDelta.y);
wheelEvent.accepted = true;
}
onClicked: {
AudioService.toggleMicMute();
}
}
}