fixed corner rendering to match stronger main window backgrounds

svn path=/trunk/KDE/kdebase/workspace/; revision=1050773
This commit is contained in:
Hugo Pereira Da Costa 2009-11-18 07:31:34 +00:00
parent 4b6c98b7ac
commit 3d99880d86

View file

@ -264,12 +264,12 @@ namespace Oxygen
// this is all fixedSize. Does not scale with shadow size // this is all fixedSize. Does not scale with shadow size
QLinearGradient lg = QLinearGradient(0.0, size-4.5, 0.0, size+4.5); QLinearGradient lg = QLinearGradient(0.0, size-4.5, 0.0, size+4.5);
lg.setColorAt(0.0, helper().calcLightColor( helper().backgroundTopColor(color) )); lg.setColorAt(0.0, helper().calcLightColor( helper().backgroundTopColor(color) ));
if( key.hasBorder || key.isShade ) lg.setColorAt(0.52, helper().backgroundTopColor(color) );
else lg.setColorAt(0.52, helper().backgroundBottomColor(color) );
lg.setColorAt(1.0, helper().backgroundBottomColor(color) ); lg.setColorAt(1.0, helper().backgroundBottomColor(color) );
if( key.isShade ) lg.setColorAt(0.51, helper().backgroundTopColor(color) );
else lg.setColorAt(0.51, helper().backgroundBottomColor(color) );
// draw ellipse. // draw ellipse.
p.setBrush( lg ); p.setBrush( lg );
p.drawEllipse( QRectF( size-4, size-4, 8, 8 ) ); p.drawEllipse( QRectF( size-4, size-4, 8, 8 ) );