Tweak lockscreen animation durations to be more fluid

This commit is contained in:
Devin Lin 2021-03-17 18:07:31 -04:00
parent ba8a8cd9bb
commit e9f5e43970

View file

@ -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;
}
}
}