From 75a1798e75a79c29a48596b91ab89cd2a399efdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 1 Feb 2021 19:44:00 +0100 Subject: [PATCH] authPrompt: Wiggle error messages coming from the Fingerprint service When error messages are coming from the fingerprint service they are actual failures due to an user input in some device, in so in such case we can highlight this by using a wiggle effect. This mimics what has been done in gnome-control-center fingerprint panel and part of [1]. [1] https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/56 Part-of: --- js/gdm/authPrompt.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 95f07a6a3..7b5d03ef4 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -430,6 +430,10 @@ var AuthPrompt = GObject.registerClass({ } else { this._message.opacity = 0; } + + if (type === GdmUtil.MessageType.ERROR && + this._userVerifier.serviceIsFingerprint(serviceName)) + Util.wiggle(this._message); } updateSensitivity(sensitive) {