From 3d99880d860dc141dd7c4fd711276f5fbeb6343b Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Wed, 18 Nov 2009 07:31:34 +0000 Subject: [PATCH] fixed corner rendering to match stronger main window backgrounds svn path=/trunk/KDE/kdebase/workspace/; revision=1050773 --- clients/oxygen/oxygenshadowcache.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clients/oxygen/oxygenshadowcache.cpp b/clients/oxygen/oxygenshadowcache.cpp index 0adcc45094..3a3f10e83b 100644 --- a/clients/oxygen/oxygenshadowcache.cpp +++ b/clients/oxygen/oxygenshadowcache.cpp @@ -264,12 +264,12 @@ namespace Oxygen // this is all fixedSize. Does not scale with shadow size QLinearGradient lg = QLinearGradient(0.0, size-4.5, 0.0, size+4.5); 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) ); + if( key.isShade ) lg.setColorAt(0.51, helper().backgroundTopColor(color) ); + else lg.setColorAt(0.51, helper().backgroundBottomColor(color) ); + + // draw ellipse. p.setBrush( lg ); p.drawEllipse( QRectF( size-4, size-4, 8, 8 ) );