1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-18 23:09:42 +01:00

Remove alpha-blending when preparing style options. We use fixed color values for results now.

This commit is contained in:
Christian Muehlhaeuser 2015-04-08 03:08:04 +02:00
parent 6aa22826ae
commit 587bf09872

View File

@ -831,17 +831,6 @@ prepareStyleOption( QStyleOptionViewItemV4* option, const QModelIndex& index, Pl
option->palette.setColor( QPalette::Foreground, option->palette.color( QPalette::HighlightedText ) );
option->palette.setColor( QPalette::Text, option->palette.color( QPalette::HighlightedText ) );
}
else
{
float opacity = 0.0;
if ( item->query() && !item->query()->results().isEmpty() && item->query()->results().first()->isOnline() )
opacity = item->query()->score();
opacity = qMax( (float)0.3, opacity );
QColor textColor = alphaBlend( option->palette.color( QPalette::Text ), option->palette.color( QPalette::BrightText ), opacity );
option->palette.setColor( QPalette::Text, textColor );
}
}