Commit 7127464c authored by Filip Fila's avatar Filip Fila 🌆
Browse files

[Task Manager] Draw audio icon highlight effect behind the icon, not in front of it

Summary:
Some Plasma themes used filled-style highlight effects which means that their audio icon gets completely covered by the highlight effect.

This patch makes the effect be drawn behind the icon.

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26880
parent 33b13889
......@@ -21,8 +21,10 @@ import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
Item {
MouseArea {
id: audioStreamIconBox
hoverEnabled: true
onClicked: toggleMuted()
// Using States rather than a simple Behavior we can apply different transitions,
// which allows us to delay showing the icon but hide it instantly still.
......@@ -90,6 +92,13 @@ Item {
opacity: 0
visible: opacity > 0
PlasmaCore.FrameSvgItem {
anchors.fill: audioStreamIcon
visible: parent.containsMouse
imagePath: "widgets/viewitem"
prefix: "hover"
}
PlasmaCore.Svg {
id: audioSvg
imagePath: "icons/audio"
......@@ -168,17 +177,4 @@ Item {
}
]
}
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