diff options
| author | Emmanuel Pescosta <[email protected]> | 2012-08-14 22:02:24 +0200 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2012-08-14 22:02:24 +0200 |
| commit | b039392f344f4d8b0a540c542f83e418349a7d4e (patch) | |
| tree | 59ae86ad16d6cc311af065722483ccddd6e94680 /src/panels/places/placesitemlistgroupheader.cpp | |
| parent | 00935edbdead8955d7f8d0e3ef520139da3f3bec (diff) | |
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
Diffstat (limited to 'src/panels/places/placesitemlistgroupheader.cpp')
| -rw-r--r-- | src/panels/places/placesitemlistgroupheader.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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" |
