From e9f5e43970a947dff635262568afb0a490ca5b5b Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Wed, 17 Mar 2021 18:07:31 -0400 Subject: [PATCH] Tweak lockscreen animation durations to be more fluid --- look-and-feel/contents/lockscreen/Keypad.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/look-and-feel/contents/lockscreen/Keypad.qml b/look-and-feel/contents/lockscreen/Keypad.qml index edb882ab..aef5c5c1 100644 --- a/look-and-feel/contents/lockscreen/Keypad.qml +++ b/look-and-feel/contents/lockscreen/Keypad.qml @@ -99,6 +99,7 @@ Rectangle { } function onFailed() { root.password = ""; + passwordChanged(); pinLabel = qsTr("Wrong PIN"); keypadRoot.waitingForAuth = false; } @@ -207,6 +208,7 @@ Rectangle { Component.onCompleted: { if (showChar) { charAnimation.to = 1; + charAnimation.duration = 75; charAnimation.restart(); } else { dotAnimation.to = 1; @@ -217,9 +219,10 @@ Rectangle { onShowCharChanged: { if (!showChar) { charAnimation.to = 0; + charAnimation.duration = 50; charAnimation.restart(); dotAnimation.to = 1; - dotAnimation.restart(); + dotAnimation.start(); } } @@ -234,7 +237,7 @@ Rectangle { id: dotAnimation target: dot; property: "scale"; - duration: 200 + duration: 50 } } @@ -250,7 +253,6 @@ Rectangle { id: charAnimation target: charLabel; property: "scale"; - duration: 150; } } }