1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-22 00:42:04 +02:00

* Fixed TomahawkUtils::prepareStyleOption().

This commit is contained in:
Christian Muehlhaeuser 2013-06-14 11:50:34 +02:00 committed by Michael Zanetti
parent 2781fafdf4
commit 99eae3c542

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