1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

* Don't use hard-coded color values.

This commit is contained in:
Christian Muehlhaeuser
2013-04-17 03:36:05 +02:00
parent 0ce5f5873c
commit 9554ce6199

View File

@@ -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 );
}
}