better gradient when the handle is at left
svn path=/trunk/KDE/kdelibs/; revision=1039135
This commit is contained in:
parent
33b5a8f082
commit
82177676af
@ -229,8 +229,8 @@ void AppletHandle::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti
|
||||
qreal opaquePoint =
|
||||
1 - ((m_background->marginSize(RightMargin) + translation) / m_decorationRect.width());
|
||||
g.setColorAt(1.0, Qt::transparent);
|
||||
g.setColorAt(opaquePoint, Qt::transparent);
|
||||
g.setColorAt(qMax(0.0, opaquePoint - 0.05), transparencyColor);
|
||||
g.setColorAt(opaquePoint + 0.05, Qt::transparent);
|
||||
g.setColorAt(qMax(0.0, opaquePoint), transparencyColor);
|
||||
g.setColorAt(0.0, transparencyColor);
|
||||
}
|
||||
//complete panel
|
||||
|
Loading…
Reference in New Issue
Block a user