mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
authPrompt: Use entry to show question texts
Currently, there is a dedicated label above the entry to display the question text. According to the new mockups for the lock screen, this label doesn't exist; instead, the question is set inside the entry itself, as a hint text. Set the questions as hint texts of the entry, and remove the now unused label. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922
This commit is contained in:
parent
f4e35a9e82
commit
43a45c091d
1 changed files with 1 additions and 10 deletions
|
|
@ -89,13 +89,6 @@ var AuthPrompt = GObject.registerClass({
|
|||
y_expand: true,
|
||||
});
|
||||
this.add_child(this._userWell);
|
||||
this._label = new St.Label({
|
||||
style_class: 'login-dialog-prompt-label',
|
||||
x_expand: false,
|
||||
y_expand: true,
|
||||
});
|
||||
|
||||
this.add_child(this._label);
|
||||
|
||||
this._initEntryRow();
|
||||
|
||||
|
|
@ -346,11 +339,9 @@ var AuthPrompt = GObject.registerClass({
|
|||
}
|
||||
|
||||
setQuestion(question) {
|
||||
this._label.set_text(question);
|
||||
this._entry.hint_text = question;
|
||||
|
||||
this._label.show();
|
||||
this._entry.show();
|
||||
|
||||
this._entry.grab_key_focus();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue