|
|
|
@ -222,7 +222,7 @@ namespace Breeze |
|
|
|
|
|
|
|
|
|
|
|
m_shadowAnimation->setStartValue( 0.0 ); |
|
|
|
m_shadowAnimation->setStartValue( 0.0 ); |
|
|
|
m_shadowAnimation->setEndValue( 1.0 ); |
|
|
|
m_shadowAnimation->setEndValue( 1.0 ); |
|
|
|
m_shadowAnimation->setEasingCurve( QEasingCurve::InCubic ); |
|
|
|
m_shadowAnimation->setEasingCurve( QEasingCurve::OutCubic ); |
|
|
|
connect(m_shadowAnimation, &QVariantAnimation::valueChanged, this, [this](const QVariant& value) { |
|
|
|
connect(m_shadowAnimation, &QVariantAnimation::valueChanged, this, [this](const QVariant& value) { |
|
|
|
m_shadowOpacity = value.toReal(); |
|
|
|
m_shadowOpacity = value.toReal(); |
|
|
|
updateShadow(); |
|
|
|
updateShadow(); |
|
|
|
@ -301,6 +301,7 @@ namespace Breeze |
|
|
|
|
|
|
|
|
|
|
|
const auto c = client().toStrongRef(); |
|
|
|
const auto c = client().toStrongRef(); |
|
|
|
m_shadowAnimation->setDirection( c->isActive() ? QAbstractAnimation::Forward : QAbstractAnimation::Backward ); |
|
|
|
m_shadowAnimation->setDirection( c->isActive() ? QAbstractAnimation::Forward : QAbstractAnimation::Backward ); |
|
|
|
|
|
|
|
m_shadowAnimation->setEasingCurve( c->isActive() ? QEasingCurve::OutCubic : QEasingCurve::InCubic ); |
|
|
|
if( m_shadowAnimation->state() != QAbstractAnimation::Running ) m_shadowAnimation->start(); |
|
|
|
if( m_shadowAnimation->state() != QAbstractAnimation::Running ) m_shadowAnimation->start(); |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|