┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistgroupheader.h
diff options
context:
space:
mode:
authorEmmanuel Pescosta <[email protected]>2012-08-14 22:02:24 +0200
committerEmmanuel Pescosta <[email protected]>2012-08-14 22:02:24 +0200
commitb039392f344f4d8b0a540c542f83e418349a7d4e (patch)
tree59ae86ad16d6cc311af065722483ccddd6e94680 /src/kitemviews/kitemlistgroupheader.h
parent00935edbdead8955d7f8d0e3ef520139da3f3bec (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/kitemviews/kitemlistgroupheader.h')
-rw-r--r--src/kitemviews/kitemlistgroupheader.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistgroupheader.h b/src/kitemviews/kitemlistgroupheader.h
index e19ab4871..1e8ed2cca 100644
--- a/src/kitemviews/kitemlistgroupheader.h
+++ b/src/kitemviews/kitemlistgroupheader.h
@@ -104,11 +104,17 @@ protected:
/** @reimp */
virtual void resizeEvent(QGraphicsSceneResizeEvent* event);
+ virtual QPalette::ColorRole normalTextColorRole() const;
+ virtual QPalette::ColorRole normalBaseColorRole() const;
+
private:
void updateCache();
static QColor mixedColor(const QColor& c1, const QColor& c2, int c1Percent = 50);
+ QColor textColor() const;
+ QColor baseColor() const;
+
private:
bool m_dirtyCache;
QByteArray m_role;