1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 09:19:41 +01:00

* Don't use hard-coded colors.

This commit is contained in:
Christian Muehlhaeuser 2013-04-16 10:24:22 +02:00
parent dea6a41d11
commit e6fd1c199e

View File

@ -231,7 +231,7 @@ SourceDelegate::paintCollection( QPainter* painter, const QStyleOptionViewItem&
QString text = painter->fontMetrics().elidedText( name, Qt::ElideRight, textRect.width() );
painter->drawText( textRect, text );
QColor descColor = QColor( "#8d8d8d" );
QColor descColor = option.palette.color( QPalette::HighlightedText ).lighter( 220 );
if ( type == SourcesModel::ScriptCollection && //you cannot select a non-script collection anyway
option.state.testFlag( QStyle::State_Selected ) )
{