Commit 3f063495 authored by Filip Fila's avatar Filip Fila 🌆

[System Tray] Always draw the highlight behind the icon

Summary:
There was a slight issue introduced with D28109: the systray highlight can now cover up the icons it's highlighting.

This isn't really an issue with Breeze because it uses a line for a highlight, but it is for themes that use a filled-style highlight.

I set a z value for the highlight that should ensure it's now drawn only behind the icon.

Test Plan:
Tested with the //Mondrian// Plasma theme

Before:
{F8280717}

After:
{F8280718}

Reviewers: kmaterka, #plasma

Reviewed By: kmaterka

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D29380
parent efe4b603
......@@ -33,6 +33,7 @@ PlasmaCore.FrameSvgItem {
0 : Math.max(0, (target ? target.x : 0) + (visualParent ? visualParent.x : 0))
y: plasmoid.formFactor === PlasmaCore.Types.Horizontal && target === root ?
0 : Math.max(0, (target ? target.y : 0) + (visualParent ? visualParent.y : 0))
z: -1 // always draw behind icons
width: plasmoid.formFactor === PlasmaCore.Types.Vertical && target === root ?
parent.width : Math.min(parent.width, target ? target.width : 0)
height: plasmoid.formFactor === PlasmaCore.Types.Horizontal && target === root ?
......
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