┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Ernst <[email protected]>2022-10-19 19:04:39 +0200
committerFelix Ernst <[email protected]>2022-10-27 09:40:03 +0000
commita4fc7b0be920cd6162927d498f27cc658377028b (patch)
tree4ccdd39872eefbcd290e4427c3664c826753a05d /src
parent9478f1473006147c643c228793822b2eeb4b0606 (diff)
Make details column text readable
When not using the full row highlight, the text of non-name columns in details view mode was wrongly colored in a way that pretended that the full row selection highlight was active. When it isn't active we use the normal color that we generally use when the additional information is not within the selection highlight.
Diffstat (limited to 'src')
-rw-r--r--src/kitemviews/kstandarditemlistwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/kstandarditemlistwidget.cpp b/src/kitemviews/kstandarditemlistwidget.cpp
index 67afbb248..ddc7c2988 100644
--- a/src/kitemviews/kstandarditemlistwidget.cpp
+++ b/src/kitemviews/kstandarditemlistwidget.cpp
@@ -1456,7 +1456,7 @@ void KStandardItemListWidget::updateAdditionalInfoTextColor()
QColor c1;
if (m_customTextColor.isValid()) {
c1 = m_customTextColor;
- } else if (isSelected()) {
+ } else if (isSelected() && (m_layout != DetailsLayout || m_highlightEntireRow)) {
// The detail text colour needs to match the main text (HighlightedText) for the same level
// of readability. We short circuit early here to avoid interpolating with another colour.
m_additionalInfoTextColor = styleOption().palette.color(QPalette::HighlightedText);