From 625e2992a58372a8ce680dadb6e74b8ae4cfa066 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 17 May 2025 00:19:08 +0200 Subject: [PATCH] adjust ripple anim --- .../quickshell/modules/common/widgets/PrimaryTabButton.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.config/quickshell/modules/common/widgets/PrimaryTabButton.qml b/.config/quickshell/modules/common/widgets/PrimaryTabButton.qml index 6b865cf77..8bfc70b04 100644 --- a/.config/quickshell/modules/common/widgets/PrimaryTabButton.qml +++ b/.config/quickshell/modules/common/widgets/PrimaryTabButton.qml @@ -12,7 +12,7 @@ TabButton { property string buttonIcon property bool selected: false property int tabContentWidth: contentItem.children[0].implicitWidth - property int rippleDuration: 1000 + property int rippleDuration: 1200 height: buttonBackground.height PointingHandInteraction {} @@ -20,13 +20,12 @@ TabButton { component RippleAnim: NumberAnimation { duration: rippleDuration easing.type: Appearance.animation.elementMoveEnter.type - easing.bezierCurve: Appearance.animation.elementMoveEnter.bezierCurve + easing.bezierCurve: Appearance.animationCurves.standardDecel } MouseArea { anchors.fill: parent - onPressed: (event) => { - + onPressed: (event) => { const {x,y} = event const stateY = buttonBackground.y; rippleAnim.x = x;