diff --git a/clients/oxygen/oxygenshadowcache.cpp b/clients/oxygen/oxygenshadowcache.cpp index 46c035871c..70acbdd8ad 100644 --- a/clients/oxygen/oxygenshadowcache.cpp +++ b/clients/oxygen/oxygenshadowcache.cpp @@ -172,86 +172,91 @@ namespace Oxygen // some gradients rendering are different at bottom corners if client has no border bool hasBorder( key.hasBorder || key.isShade ); - if( active && key.useOxygenShadows ) + if( shadowSize ) { + if( active && key.useOxygenShadows ) { - // inner (shark) gradient - int nPoints = 7; - qreal x[7] = {0, 0.05, 0.1, 0.15, 0.2, 0.3, 0.4 }; - int values[7] = {203, 200, 175, 105, 45, 2, 0 }; - QRadialGradient rg = QRadialGradient( size+12.0*hoffset, size+12.0*voffset, shadowSize ); - QColor c = shadowConfiguration.innerColor(); - for( int i = 0; i