Commit 0df71f11 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: addons_manager: reduce type gradient size

parent db8f5176
......@@ -1106,8 +1106,9 @@ void AddonItemDelegate::paint( QPainter *painter,
if ( backgroundColor.isValid() )
{
painter->save();
int i_corner = qMin( (int)(option.rect.width() * .05), 30 );
QLinearGradient gradient(
QPoint( option.rect.right() - 50, option.rect.top() ),
QPoint( option.rect.right() - i_corner, option.rect.bottom() - i_corner ),
option.rect.bottomRight() );
gradient.setColorAt( 0, Qt::transparent );
gradient.setColorAt( 1.0, backgroundColor );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment