[gnome-shell] authPrompt: Wiggle error messages coming from the Fingerprint service
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] authPrompt: Wiggle error messages coming from the Fingerprint service
- Date: Mon, 15 Feb 2021 17:05:28 +0000 (UTC)
commit 75a1798e75a79c29a48596b91ab89cd2a399efdb
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Mon Feb 1 19:44:00 2021 +0100
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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1652>
js/gdm/authPrompt.js | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index 95f07a6a3f..7b5d03ef42 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]