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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user