From aea57958326360a1dc15509c02397594da20538e Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 23 Aug 2025 20:43:04 +1000 Subject: lock: add fprint support (#429) * lock: add fprint support * lock: better fprint detection * lock: cap error retries * nix: fix fprint pam for nix * lock: reset fprint tries * lock: minor pam fixes Delay fprint error retries Reset fprint error retries on lock * lock: loading indicator passwd state Instead of fprint state cause no way of detecting that * dashboard: better visualiser * lock: better fprint availability check * lock: better in/out anim Animating layout sizes is a bad idea :woe: Use scale instead * lock: add better error/fail messages * lock: less fprint icon states Already shown by message * lock: fix fprint reset * lock: include passwd pam * lock: flash message on change * lock: fix message anim Also wrap message instead of eliding * lock: better messages for no fprint --- modules/lock/InputField.qml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'modules/lock/InputField.qml') diff --git a/modules/lock/InputField.qml b/modules/lock/InputField.qml index 9472d41..9360a1e 100644 --- a/modules/lock/InputField.qml +++ b/modules/lock/InputField.qml @@ -40,19 +40,15 @@ Item { anchors.centerIn: parent text: { - if (root.pam.active) + if (root.pam.passwd.active) return qsTr("Loading..."); - if (root.pam.state === "error") - return qsTr("An error occured"); if (root.pam.state === "max") return qsTr("You have reached the maximum number of tries"); - if (root.pam.state === "fail") - return qsTr("Incorrect password"); return qsTr("Enter your password"); } animate: true - color: root.pam.active ? Colours.palette.m3secondary : root.pam.state ? Colours.palette.m3error : Colours.palette.m3outline + color: root.pam.passwd.active ? Colours.palette.m3secondary : Colours.palette.m3outline font.pointSize: Appearance.font.size.normal font.family: Appearance.font.family.mono -- cgit v1.2.3-freya