1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

* Fixed TomahawkUtils::prepareStyleOption().

This commit is contained in:
Christian Muehlhaeuser 2013-06-14 11:50:34 +02:00
parent 9038992758
commit 542b178ece

View File

@ -748,10 +748,11 @@ prepareStyleOption( QStyleOptionViewItemV4* option, const QModelIndex& index, Pl
option->backgroundBrush = TomahawkStyle::NOW_PLAYING_ITEM;
option->palette.setColor( QPalette::Highlight, TomahawkStyle::NOW_PLAYING_ITEM.lighter() );
option->palette.setColor( QPalette::Text, TomahawkStyle::NOW_PLAYING_ITEM_TEXT );
option->palette.setColor( QPalette::Foreground, TomahawkStyle::NOW_PLAYING_ITEM_TEXT );
}
else if ( option->state & QStyle::State_Selected )
{
option->palette.setColor( QPalette::Foreground, option->palette.color( QPalette::HighlightedText ) );
option->palette.setColor( QPalette::Text, option->palette.color( QPalette::HighlightedText ) );
}
else