polkit: Improve styling in polkit dialog
Center the "Password:" label, and add a bit more spacing
This commit is contained in:
parent
e134d2e5a5
commit
4d7d66bc1f
@ -1859,12 +1859,8 @@ StButton.popup-menu-item:insensitive {
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.prompt-dialog-password-label:ltr {
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
|
||||
.prompt-dialog-password-label:rtl {
|
||||
padding-left: 0.5em;
|
||||
.prompt-dialog-password-box {
|
||||
spacing: 1em;
|
||||
}
|
||||
|
||||
.prompt-dialog-error-label {
|
||||
|
@ -135,17 +135,17 @@ const AuthenticationDialog = new Lang.Class({
|
||||
|
||||
this._onUserChanged();
|
||||
|
||||
this._passwordBox = new St.BoxLayout({ vertical: false });
|
||||
this._passwordBox = new St.BoxLayout({ vertical: false, style_class: 'prompt-dialog-password-box' });
|
||||
messageBox.add(this._passwordBox);
|
||||
this._passwordLabel = new St.Label(({ style_class: 'prompt-dialog-password-label' }));
|
||||
this._passwordBox.add(this._passwordLabel);
|
||||
this._passwordBox.add(this._passwordLabel, { y_fill: false, y_align: St.Align.MIDDLE });
|
||||
this._passwordEntry = new St.Entry({ style_class: 'prompt-dialog-password-entry',
|
||||
text: "",
|
||||
can_focus: true});
|
||||
ShellEntry.addContextMenu(this._passwordEntry, { isPassword: true });
|
||||
this._passwordEntry.clutter_text.connect('activate', Lang.bind(this, this._onEntryActivate));
|
||||
this._passwordBox.add(this._passwordEntry,
|
||||
{expand: true });
|
||||
{ expand: true });
|
||||
this.setInitialKeyFocus(this._passwordEntry);
|
||||
this._passwordBox.hide();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user