diff --git a/components/StyledText.qml b/components/StyledText.qml index 2754a46d..e39e72e7 100644 --- a/components/StyledText.qml +++ b/components/StyledText.qml @@ -8,10 +8,6 @@ Text { id: root property bool animate: false - property string animateProp: "scale" - property real animateFrom: 0 - property real animateTo: 1 - property int animateDuration: Tokens.anim.durations.normal renderType: Text.NativeRendering textFormat: Text.PlainText @@ -27,20 +23,18 @@ Text { SequentialAnimation { Anim { - to: root.animateFrom - easing: Tokens.anim.standardAccel + target: root + property: "opacity" + to: 0 + type: Anim.FastEffects } PropertyAction {} Anim { - to: root.animateTo - easing: Tokens.anim.standardDecel + target: root + property: "opacity" + to: 1 + type: Anim.DefaultEffects } } } - - component Anim: NumberAnimation { - target: root - property: root.animateProp - duration: root.animateDuration / 2 - } } diff --git a/modules/lock/Center.qml b/modules/lock/Center.qml index b73bd8b7..f6139ab9 100644 --- a/modules/lock/Center.qml +++ b/modules/lock/Center.qml @@ -257,7 +257,6 @@ ColumnLayout { scale: shouldBeVisible && !message.msg ? 1 : 0.7 opacity: shouldBeVisible && !message.msg ? 1 : 0 color: Colours.palette.m3onSurfaceVariant - animateProp: "opacity" font: Tokens.font.mono.small horizontalAlignment: Qt.AlignHCenter