mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-09-01 18:04:05 +02:00
Fixed opacity in ColumnItemDelegate for online results.
This commit is contained in:
@@ -103,7 +103,7 @@ ColumnItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option
|
|||||||
}
|
}
|
||||||
else if ( !item->result().isNull() || !item->query().isNull() )
|
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 );
|
opacity = qMax( (float)0.3, opacity );
|
||||||
QColor textColor = TomahawkUtils::alphaBlend( option.palette.color( QPalette::Foreground ), option.palette.color( QPalette::Background ), opacity );
|
QColor textColor = TomahawkUtils::alphaBlend( option.palette.color( QPalette::Foreground ), option.palette.color( QPalette::Background ), opacity );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user