polkit: Improve styling in polkit dialog

Center the "Password:" label, and add a bit more spacing
This commit is contained in:
Jasper St. Pierre 2012-08-01 17:37:31 -03:00
parent e134d2e5a5
commit 4d7d66bc1f
2 changed files with 5 additions and 9 deletions

View File

@ -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 {

View File

@ -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();