From 9554ce6199ea6dc785efbb8f84fe1904f7e8c088 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 17 Apr 2013 03:36:05 +0200 Subject: [PATCH] * Don't use hard-coded color values. --- src/sourcetree/SourceDelegate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sourcetree/SourceDelegate.cpp b/src/sourcetree/SourceDelegate.cpp index 244d70048..3483a6048 100644 --- a/src/sourcetree/SourceDelegate.cpp +++ b/src/sourcetree/SourceDelegate.cpp @@ -235,7 +235,7 @@ SourceDelegate::paintCollection( QPainter* painter, const QStyleOptionViewItem& painter->drawText( textRect, text, to ); } - QColor descColor = option.palette.color( QPalette::Text ).lighter( 220 ); + QColor descColor = option.palette.color( QPalette::Text ).lighter( 180 ); if ( type == SourcesModel::ScriptCollection && //you cannot select a non-script collection anyway option.state.testFlag( QStyle::State_Selected ) ) { @@ -304,7 +304,7 @@ SourceDelegate::paintCollection( QPainter* painter, const QStyleOptionViewItem& m_lockRects.remove( index ); if ( isPlaying ) - descColor = Qt::black; + descColor = option.palette.color( QPalette::Text ); } }