From bdd37012bb1e855220e465fa6db101bed0cc4992 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 6 May 2025 18:15:06 +1000 Subject: refactor: popout layer consistency with border Make them use the same background colour and rounding as the border --- widgets/StyledText.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'widgets') diff --git a/widgets/StyledText.qml b/widgets/StyledText.qml index 9e4be48..c39269b 100644 --- a/widgets/StyledText.qml +++ b/widgets/StyledText.qml @@ -9,6 +9,8 @@ Text { property bool animate: false property string animateProp: "scale" + property real animateFrom: 0 + property real animateTo: 1 property int animateDuration: Appearance.anim.durations.normal renderType: Text.NativeRendering @@ -29,12 +31,12 @@ Text { SequentialAnimation { Anim { - to: 0 + to: root.animateFrom easing.bezierCurve: Appearance.anim.curves.standardAccel } PropertyAction {} Anim { - to: 1 + to: root.animateTo easing.bezierCurve: Appearance.anim.curves.standardDecel } } -- cgit v1.2.3-freya