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:
parent
dea6a41d11
commit
e6fd1c199e
@ -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 ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user