mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 14:46:33 +02:00
* Tweaked GridView shadow.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user