mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-30 00:12:50 -05:00
Allow toggling mute with right-click on bar (#1147)
This commit is contained in:
@@ -255,11 +255,14 @@ BasePill {
|
|||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.NoButton
|
acceptedButtons: Qt.RightButton
|
||||||
onWheel: function (wheelEvent) {
|
onWheel: function (wheelEvent) {
|
||||||
root.handleVolumeWheel(wheelEvent.angleDelta.y);
|
root.handleVolumeWheel(wheelEvent.angleDelta.y);
|
||||||
wheelEvent.accepted = true;
|
wheelEvent.accepted = true;
|
||||||
}
|
}
|
||||||
|
onClicked: {
|
||||||
|
AudioService.toggleMute();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -280,11 +283,14 @@ BasePill {
|
|||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.NoButton
|
acceptedButtons: Qt.RightButton
|
||||||
onWheel: function (wheelEvent) {
|
onWheel: function (wheelEvent) {
|
||||||
root.handleMicWheel(wheelEvent.angleDelta.y);
|
root.handleMicWheel(wheelEvent.angleDelta.y);
|
||||||
wheelEvent.accepted = true;
|
wheelEvent.accepted = true;
|
||||||
}
|
}
|
||||||
|
onClicked: {
|
||||||
|
AudioService.toggleMicMute();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -389,11 +395,14 @@ BasePill {
|
|||||||
MouseArea {
|
MouseArea {
|
||||||
id: audioWheelArea
|
id: audioWheelArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.NoButton
|
acceptedButtons: Qt.RightButton
|
||||||
onWheel: function (wheelEvent) {
|
onWheel: function (wheelEvent) {
|
||||||
root.handleVolumeWheel(wheelEvent.angleDelta.y);
|
root.handleVolumeWheel(wheelEvent.angleDelta.y);
|
||||||
wheelEvent.accepted = true;
|
wheelEvent.accepted = true;
|
||||||
}
|
}
|
||||||
|
onClicked: {
|
||||||
|
AudioService.toggleMute();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -415,11 +424,14 @@ BasePill {
|
|||||||
MouseArea {
|
MouseArea {
|
||||||
id: micWheelArea
|
id: micWheelArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.NoButton
|
acceptedButtons: Qt.RightButton
|
||||||
onWheel: function (wheelEvent) {
|
onWheel: function (wheelEvent) {
|
||||||
root.handleMicWheel(wheelEvent.angleDelta.y);
|
root.handleMicWheel(wheelEvent.angleDelta.y);
|
||||||
wheelEvent.accepted = true;
|
wheelEvent.accepted = true;
|
||||||
}
|
}
|
||||||
|
onClicked: {
|
||||||
|
AudioService.toggleMicMute();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user