1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

* Glow-effect on hovering GridView items.

This commit is contained in:
Christian Muehlhaeuser
2012-11-16 16:19:54 +01:00
parent 1c7543f70b
commit 2988508b58

View File

@@ -150,8 +150,8 @@ GridItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
{
painter->save();
painter->setPen( QColor( 33, 33, 33 ) );
painter->setBrush( QColor( 33, 33, 33 ) );
painter->setPen( QColor( "dddddd" ) );
painter->setBrush( QColor( "#dddddd" ) );
painter->setOpacity( opacity );
painter->drawRect( r );
@@ -177,7 +177,7 @@ GridItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
c1.setAlphaF( 0.00 );
QColor c2;
c2.setRgb( 0, 0, 0 );
c2.setAlphaF( 0.90 );
c2.setAlphaF( 0.88 );
QRect gradientRect = r.adjusted( 0, r.height() - frameHeight * 2, 0, 0 );
QLinearGradient gradient( QPointF( 0, 0 ), QPointF( 0, 1 ) );