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

* Make the hover fade a bit more noticeable. Looks nice imo.

This commit is contained in:
Christian Muehlhaeuser 2012-05-26 18:07:50 +02:00
parent a55c1c0f08
commit ecd4aeb965

View File

@ -44,7 +44,7 @@
#include "utils/Logger.h"
namespace {
static const int FADE_DURATION = 75;
static const int FADE_DURATION = 250;
};
@ -125,10 +125,8 @@ AlbumItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
fader->setSize( r.size() );
const QPixmap cover = fader->currentPixmap();
painter->drawPixmap( r, cover );
qreal opacity = -1.;
if ( m_hoverFaders.contains( index ) )
{
@ -140,7 +138,6 @@ AlbumItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
opacity = 0.35;
}
if ( opacity > -1. )
{
painter->save();