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

Fixed opacity in ColumnItemDelegate for online results.

This commit is contained in:
Christian Muehlhaeuser 2015-04-04 14:55:07 +02:00
parent 80202694e3
commit ac7401e235

View File

@ -103,7 +103,7 @@ ColumnItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option
}
else if ( !item->result().isNull() || !item->query().isNull() )
{
float opacity = item->query() && item->result()->isOnline() ? item->query()->score() : 0.0;
float opacity = item->result() && item->result()->isOnline() ? 1.0 : 0.0;
opacity = qMax( (float)0.3, opacity );
QColor textColor = TomahawkUtils::alphaBlend( option.palette.color( QPalette::Foreground ), option.palette.color( QPalette::Background ), opacity );