From 1ae115a7ef9bad1b92e1e5f67d2d6e114da3e550 Mon Sep 17 00:00:00 2001 From: xibowen Date: Fri, 19 Apr 2024 15:00:54 +0800 Subject: [PATCH] BUGI8ZZBH, Fix checkbox animation easing curve --- .../animations/config-checkbox-animator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ukui-styles/qt5-config-style-ukui/animations/config-checkbox-animator.cpp b/ukui-styles/qt5-config-style-ukui/animations/config-checkbox-animator.cpp index e9c6d9a..b827ad3 100644 --- a/ukui-styles/qt5-config-style-ukui/animations/config-checkbox-animator.cpp +++ b/ukui-styles/qt5-config-style-ukui/animations/config-checkbox-animator.cpp @@ -67,7 +67,7 @@ bool ConfigCheckBoxAnimator::bindWidget(QWidget *w) m_onScale->setStartValue(0.0); m_onScale->setEndValue(1.0); m_onScale->setDuration(260); - m_onScale->setEasingCurve(QEasingCurve::InOutSine); + m_onScale->setEasingCurve(QEasingCurve::OutCubic); addAnimation(m_onScale); connect(m_onScale, &QVariantAnimation::valueChanged, w, [=](const QVariant &value) { w->update(); @@ -80,7 +80,7 @@ bool ConfigCheckBoxAnimator::bindWidget(QWidget *w) m_onOpacity->setStartValue(0.0); m_onOpacity->setEndValue(1.0); m_onOpacity->setDuration(120); - m_onOpacity->setEasingCurve(QEasingCurve::InOutSine); + m_onOpacity->setEasingCurve(QEasingCurve::OutCubic); addAnimation(m_onOpacity); connect(m_onOpacity, &QVariantAnimation::valueChanged, w, [=](const QVariant &value) { w->update(); @@ -93,7 +93,7 @@ bool ConfigCheckBoxAnimator::bindWidget(QWidget *w) m_onBase->setStartValue(0.0); m_onBase->setEndValue(1.0); m_onBase->setDuration(180); - m_onBase->setEasingCurve(QEasingCurve::InOutSine); + m_onBase->setEasingCurve(QEasingCurve::OutCubic); addAnimation(m_onBase); connect(m_onBase, &QVariantAnimation::valueChanged, w, [=](const QVariant &value) { w->update();