From 7c6f6682cf60fa28995ee759d9bfcd4d4c5715a5 Mon Sep 17 00:00:00 2001 From: Soramane <61896496+soramanew@users.noreply.github.com> Date: Sat, 30 May 2026 16:49:26 +0800 Subject: [PATCH] feat: use shape loading indicator for lock --- modules/lock/center/PasswordInput.qml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/modules/lock/center/PasswordInput.qml b/modules/lock/center/PasswordInput.qml index 5518ea84..fb01d53c 100644 --- a/modules/lock/center/PasswordInput.qml +++ b/modules/lock/center/PasswordInput.qml @@ -47,8 +47,8 @@ StyledRect { spacing: Tokens.spacing.medium Item { - implicitWidth: implicitHeight - implicitHeight: fprintIcon.implicitHeight + Tokens.padding.small + Layout.fillHeight: true + implicitWidth: height MaterialIcon { id: fprintIcon @@ -72,9 +72,20 @@ StyledRect { } } - CircularIndicator { + Loader { anchors.fill: parent - running: root.lock.pam.passwd.active + anchors.margins: Tokens.padding.small + + active: opacity > 0 + opacity: root.lock.pam.passwd.active ? 1 : 0 + + sourceComponent: LoadingIndicator {} + + Behavior on opacity { + Anim { + type: Anim.DefaultEffects + } + } } }