diff --git a/clients/oxygen/oxygenbutton.cpp b/clients/oxygen/oxygenbutton.cpp index 6e0921538f..eced12fd33 100644 --- a/clients/oxygen/oxygenbutton.cpp +++ b/clients/oxygen/oxygenbutton.cpp @@ -250,9 +250,6 @@ namespace Oxygen _helper.viewNegativeTextBrush().brush(palette).color(): _helper.viewHoverBrush().brush(palette).color(); - // shadow color - QColor shadow = _helper.calcShadowColor( base ); - // decide decoration color if( isAnimated() ) color = KColorUtils::mix( color, glow, glowIntensity() ); else if( _status == Oxygen::Hovered ) color = glow; @@ -260,6 +257,9 @@ namespace Oxygen if( hasDecoration() ) { + // shadow color + QColor shadow = _helper.calcShadowColor( base ); + // decide shadow color if( isAnimated() ) shadow = KColorUtils::mix( shadow, glow, glowIntensity() ); else if( _status == Oxygen::Hovered ) shadow = glow;