mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Add a small animation on password icon in lockscreen
This commit is contained in:
@@ -585,13 +585,31 @@ Item {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
Repeater {
|
||||
model: passwordInput.text.length
|
||||
model: ScriptModel {
|
||||
values: Array(passwordInput.text.length)
|
||||
}
|
||||
|
||||
NIcon {
|
||||
id: icon
|
||||
icon: "circle-filled"
|
||||
pointSize: Style.fontSizeS
|
||||
color: Color.mPrimary
|
||||
opacity: 1.0
|
||||
scale: 0.5
|
||||
ParallelAnimation {
|
||||
id: iconAnim
|
||||
NumberAnimation {
|
||||
target: icon
|
||||
properties: "scale"
|
||||
to: 1
|
||||
duration: Style.animationFast
|
||||
easing.type: Easing.BezierSpline
|
||||
easing.bezierCurve: Easing.OutInBounce
|
||||
}
|
||||
}
|
||||
Component.onCompleted: {
|
||||
iconAnim.start();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user