try install better glow.
This commit is contained in:
parent
4732070efa
commit
3f8b4de381
2 changed files with 12 additions and 6 deletions
|
@ -258,12 +258,9 @@ namespace Oxygen
|
|||
{
|
||||
|
||||
// shadow color
|
||||
QColor shadow = _helper.calcShadowColor( base );
|
||||
|
||||
// decide shadow color
|
||||
if( isAnimated() ) shadow = KColorUtils::mix( shadow, glow, glowIntensity() );
|
||||
QColor shadow;
|
||||
if( isAnimated() ) shadow = _helper.alphaColor( glow, glowIntensity() );
|
||||
else if( _status == Oxygen::Hovered ) shadow = glow;
|
||||
shadow = _helper.calcDarkColor( shadow );
|
||||
|
||||
qreal scale( (21.0*_client.configuration().buttonSize())/22.0 );
|
||||
|
||||
|
|
|
@ -68,12 +68,21 @@ namespace Oxygen
|
|||
p.setPen(Qt::NoPen);
|
||||
p.setWindow( 0, 0, 18, 18 );
|
||||
|
||||
// button shadow
|
||||
if( color.isValid() )
|
||||
{
|
||||
p.save();
|
||||
p.translate( 0, -1.2 );
|
||||
drawShadow( p, calcShadowColor( color ), 18 );
|
||||
p.restore();
|
||||
}
|
||||
|
||||
// button glow
|
||||
if( glow.isValid() )
|
||||
{
|
||||
p.save();
|
||||
p.translate( 0, -1.2 );
|
||||
drawShadow( p, glow, 18 );
|
||||
drawOuterGlow( p, glow, 18 );
|
||||
p.restore();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue