only define Shadow in scope where it is used.
This commit is contained in:
parent
a05eecf4f0
commit
4732070efa
1 changed files with 3 additions and 3 deletions
|
@ -250,9 +250,6 @@ namespace Oxygen
|
||||||
_helper.viewNegativeTextBrush().brush(palette).color():
|
_helper.viewNegativeTextBrush().brush(palette).color():
|
||||||
_helper.viewHoverBrush().brush(palette).color();
|
_helper.viewHoverBrush().brush(palette).color();
|
||||||
|
|
||||||
// shadow color
|
|
||||||
QColor shadow = _helper.calcShadowColor( base );
|
|
||||||
|
|
||||||
// decide decoration color
|
// decide decoration color
|
||||||
if( isAnimated() ) color = KColorUtils::mix( color, glow, glowIntensity() );
|
if( isAnimated() ) color = KColorUtils::mix( color, glow, glowIntensity() );
|
||||||
else if( _status == Oxygen::Hovered ) color = glow;
|
else if( _status == Oxygen::Hovered ) color = glow;
|
||||||
|
@ -260,6 +257,9 @@ namespace Oxygen
|
||||||
if( hasDecoration() )
|
if( hasDecoration() )
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// shadow color
|
||||||
|
QColor shadow = _helper.calcShadowColor( base );
|
||||||
|
|
||||||
// decide shadow color
|
// decide shadow color
|
||||||
if( isAnimated() ) shadow = KColorUtils::mix( shadow, glow, glowIntensity() );
|
if( isAnimated() ) shadow = KColorUtils::mix( shadow, glow, glowIntensity() );
|
||||||
else if( _status == Oxygen::Hovered ) shadow = glow;
|
else if( _status == Oxygen::Hovered ) shadow = glow;
|
||||||
|
|
Loading…
Reference in a new issue