Commit da268696 authored by Björn Feber's avatar Björn Feber
Browse files

[Task Manager] Toggle mute when the audio indicator is clicked

Summary:
The task manager shows an indicator on tasks playing audio (when
enabled in the settings). This patch adds the ability to mute/unmute
an application playing audio by clicking on the audio indicator in
the task manager.

Test Plan:
* Check "Mark applications that play audio" in the Task Manager Settings
* Open an application that plays audio
* Click on the audio indicator and it should toggle the mute state
{F7324364}

Reviewers: #plasma, #vdg, ngraham, filipf, hein, faridb

Reviewed By: #plasma, #vdg, ngraham, hein

Subscribers: GB_2, mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D19822
parent 7b0149c7
......@@ -96,4 +96,17 @@ Item {
id: audioStreamIcon
anchors.fill: parent
}
MouseArea {
anchors.fill: parent
hoverEnabled: true
onClicked: toggleMuted()
PlasmaCore.FrameSvgItem {
anchors.fill: parent
visible: parent.containsMouse
imagePath: "widgets/viewitem"
prefix: "hover"
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment