Commit a9291006 authored by Nate Graham's avatar Nate Graham
Browse files

[Folder view] Use selected text color for selected items in full representation

Right now, selected (not highlighted) items in the popup persist in using
the default text color , which can result in readability problems for light
themes that use a dark highlight effect.

BUG: 414287
FIXED-IN: 5.17.4

Test Plan:
Put a Folder widget in a horizontal panel, click it, hover the mouse over one
of the items in the list, and then click.

Before: {F7772272}

After: {F7772271}

No change or regressions for selected items in Folder View on the desktop.

Reviewers: #vdg, #plasma, ndavis

Reviewed By: #vdg, ndavis

Subscribers: ndavis, plasma-devel

Tags: #plasma

Differential Revision:
parent 3cde719b
......@@ -350,8 +350,15 @@ Item {
wrapMode: (maximumLineCount == 1) ? Text.NoWrap : Text.Wrap
elide: Text.ElideRight
color: (frameLoader.textShadow && frameLoader.textShadow.visible
? "#fff" : PlasmaCore.ColorScope.textColor)
color: {
if (frameLoader.textShadow && frameLoader.textShadow.visible) {
return "#fff";
} else if (model.selected) {
return PlasmaCore.ColorScope.highlightedTextColor;
} else {
return PlasmaCore.ColorScope.textColor
opacity: model.isHidden ? 0.6 : 1
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