From ffdadc48443ddff8688ecb9c128fe69fa0cdb094 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Wed, 25 Nov 2009 23:16:56 +0000 Subject: [PATCH] Fixed corner color for shaded windows svn path=/trunk/KDE/kdebase/workspace/; revision=1054385 --- clients/oxygen/oxygenshadowcache.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clients/oxygen/oxygenshadowcache.cpp b/clients/oxygen/oxygenshadowcache.cpp index 3a3f10e83b..893a03601b 100644 --- a/clients/oxygen/oxygenshadowcache.cpp +++ b/clients/oxygen/oxygenshadowcache.cpp @@ -264,11 +264,9 @@ 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) )); + lg.setColorAt(0.51, 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 );