From 15b687a27065f466f5f0469a2b653a87ca61d055 Mon Sep 17 00:00:00 2001 From: Emmanuel Pescosta Date: Tue, 14 Aug 2012 22:02:24 +0200 Subject: Fix wrong text color in Places Group Header. Use QPalette::Window for base color and QPalette::WindowText for text color. Also changed m_roleColor color mixing to 60% (from 70%) -> Better visible color difference when base color is darker than text color. Also changed styleOption().palette.brush(group, role).color() to styleOption().palette.color(group, role) in KStandardItemListWidget -> should be more efficient. BUG: 303133 FIXED-IN: 4.9.1 (cherry picked from commit b3c3da985159a9627c079ad615cd77fc5f7bb72a) --- src/panels/places/placesitemlistgroupheader.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/panels/places/placesitemlistgroupheader.cpp') diff --git a/src/panels/places/placesitemlistgroupheader.cpp b/src/panels/places/placesitemlistgroupheader.cpp index 27d4c7917..ec7c4b18c 100644 --- a/src/panels/places/placesitemlistgroupheader.cpp +++ b/src/panels/places/placesitemlistgroupheader.cpp @@ -37,4 +37,9 @@ void PlacesItemListGroupHeader::paintSeparator(QPainter* painter, const QColor& Q_UNUSED(color); } +QPalette::ColorRole PlacesItemListGroupHeader::normalTextColorRole() const +{ + return QPalette::WindowText; +} + #include "placesitemlistgroupheader.moc" -- cgit v1.3