From 21b27e90bf938bc66b555f108c8114d74a678bf6 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Wed, 7 Oct 2020 09:01:30 -0600 Subject: [PATCH] [ExpandableListItem] Make colored text 100% opaque Otherwise it can be difficult to see, especially with dark backgrounds. Also, let's set the opacity directly rather than using the enabled property to approximate it. BUG: 427171 FIXED-IN: 5.76 --- .../plasmaextracomponents/qml/ExpandableListItem.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml b/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml index f9acdfd8b..0bdb579ce 100644 --- a/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml +++ b/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml @@ -421,10 +421,12 @@ Item { PlasmaComponents3.Label { id: listItemSubtitle - enabled: false visible: text.length > 0 font: PlasmaCore.Theme.smallestFont + // Otherwise colored text can be hard to see + opacity: color === PlasmaCore.Theme.textColor ? 0.7 : 1.0 + Layout.fillWidth: true textFormat: listItem.allowStyledText ? Text.StyledText : Text.PlainText