From 587bf09872806b387be82bffd5ff3a6c6545fe23 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 8 Apr 2015 03:08:04 +0200 Subject: [PATCH] Remove alpha-blending when preparing style options. We use fixed color values for results now. --- src/libtomahawk/utils/TomahawkUtilsGui.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/libtomahawk/utils/TomahawkUtilsGui.cpp b/src/libtomahawk/utils/TomahawkUtilsGui.cpp index 95841c91d..227dd6d4a 100644 --- a/src/libtomahawk/utils/TomahawkUtilsGui.cpp +++ b/src/libtomahawk/utils/TomahawkUtilsGui.cpp @@ -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 ); - } }