Commit 596f979d authored by Nate Graham's avatar Nate Graham 💤
Browse files

[Folder View] Use an inactive highlight effect when something else has focus

Summary:
The theme SVG doesn't have a concept of "inactive selection highlight", so we need to
manufacture our own by reducing the opacity of the selection highlight.

Thanks to @broulik for suggesting the necessary code changes in the bug report.

FEATURE: 375501
FIXED-IN: 5.18.0

Test Plan: {F7743147}

Reviewers: #plasma, #vdg, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25160
parent 76d9233b
......@@ -18,6 +18,7 @@
***************************************************************************/
import QtQuick 2.8
import QtQuick.Window 2.2
import QtGraphicalEffects 1.0
import org.kde.plasma.plasmoid 2.0
......@@ -380,6 +381,9 @@ Item {
prefix: frameLoader.prefix
imagePath: "widgets/viewitem"
// Use inactive highlight effect when something else has focus
opacity: Window.active ? 1 : 0.4
}
}
......
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