mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +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 );
|
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
|
if ( type == SourcesModel::ScriptCollection && //you cannot select a non-script collection anyway
|
||||||
option.state.testFlag( QStyle::State_Selected ) )
|
option.state.testFlag( QStyle::State_Selected ) )
|
||||||
{
|
{
|
||||||
@@ -304,7 +304,7 @@ SourceDelegate::paintCollection( QPainter* painter, const QStyleOptionViewItem&
|
|||||||
m_lockRects.remove( index );
|
m_lockRects.remove( index );
|
||||||
|
|
||||||
if ( isPlaying )
|
if ( isPlaying )
|
||||||
descColor = Qt::black;
|
descColor = option.palette.color( QPalette::Text );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user