[gnome-shell/uajain/adapt-user-avatar-part2: 39/39] authPrompt: Don't hide the caps lock warning label
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/uajain/adapt-user-avatar-part2: 39/39] authPrompt: Don't hide the caps lock warning label
- Date: Wed, 12 Feb 2020 17:52:23 +0000 (UTC)
commit 51acd011810bff6368ad23be2014c73b727d1ddc
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Feb 11 12:03:07 2020 -0300
authPrompt: Don't hide the caps lock warning label
Hiding the Caps lock warning label changes the layout of
Auth Prompt. This is specially noticeable when logging in
with unlisted users, where we change the visibility of this
label after typing a username, and the whole user widget
moves a bit.
Change the Cap lock label's opacity instead of hiding it.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922
js/gdm/authPrompt.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index b7bf38d485..517b25ea47 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -200,7 +200,7 @@ var AuthPrompt = GObject.registerClass({
this._mainBox.replace_child(this._entry, this._textEntry);
this._entry = this._textEntry;
}
- this._capsLockWarningLabel.visible = secret;
+ this._capsLockWarningLabel.opacity = secret ? 0 : 255;
}
_onAskQuestion(verifier, serviceName, question, secret) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]