1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02:00

* Tweaked GridView shadow.

This commit is contained in:
Christian Muehlhaeuser
2012-11-16 15:49:35 +01:00
parent 9fd4ec9efb
commit 1c7543f70b

View File

@@ -177,13 +177,13 @@ GridItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
c1.setAlphaF( 0.00 );
QColor c2;
c2.setRgb( 0, 0, 0 );
c2.setAlphaF( 0.99 );
c2.setAlphaF( 0.90 );
QRect gradientRect = r.adjusted( 0, r.height() - frameHeight * 2, 0, 0 );
QLinearGradient gradient( QPointF( 0, 0 ), QPointF( 0, 1 ) );
gradient.setCoordinateMode( QGradient::ObjectBoundingMode );
gradient.setColorAt( 0.0, c1 );
gradient.setColorAt( 0.8, c2 );
gradient.setColorAt( 0.6, c2 );
gradient.setColorAt( 1.0, c2 );
painter->save();