endSessionDialog: clean up appearance

This commit lines up the app list with the description,
adds spacing between controls of the dialog, and increases
the wrap width of the text.

https://bugzilla.gnome.org/show_bug.cgi?id=641375
This commit is contained in:
Ray Strode 2011-03-21 16:07:22 -04:00
parent 7dcd2313d8
commit 35e410fe96
3 changed files with 15 additions and 9 deletions

View File

@ -1350,6 +1350,10 @@ StTooltip StLabel {
padding-top: 30px; padding-top: 30px;
} }
.modal-dialog-button-box {
spacing: 21px;
}
.modal-dialog-button { .modal-dialog-button {
border: 1px solid #8b8b8b; border: 1px solid #8b8b8b;
border-radius: 18px; border-radius: 18px;
@ -1421,6 +1425,10 @@ StTooltip StLabel {
} }
/* End Session Dialog */ /* End Session Dialog */
.end-session-dialog {
spacing: 42px;
}
.end-session-dialog-subject { .end-session-dialog-subject {
font-size: 12pt; font-size: 12pt;
font-weight: bold; font-weight: bold;
@ -1439,13 +1447,11 @@ StTooltip StLabel {
font-size: 10pt; font-size: 10pt;
color: white; color: white;
padding-left: 17px; padding-left: 17px;
padding-right: 40px; width: 28em;
width: 16em;
} }
.end-session-dialog-description:rtl { .end-session-dialog-description:rtl {
padding-right: 17px; padding-right: 17px;
padding-left: 40px;
} }
.end-session-dialog-logout-icon { .end-session-dialog-logout-icon {
@ -1464,13 +1470,12 @@ StTooltip StLabel {
font-size: 10pt; font-size: 10pt;
max-height: 200px; max-height: 200px;
padding-top: 42px; padding-top: 42px;
padding-bottom: 42px; padding-left: 49px;
padding-left: 17px;
padding-right: 32px; padding-right: 32px;
} }
.end-session-dialog-app-list:rtl { .end-session-dialog-app-list:rtl {
padding-right: 17px; padding-right: 49px;
padding-left: 32px; padding-left: 32px;
} }

View File

@ -233,7 +233,7 @@ EndSessionDialog.prototype = {
__proto__: ModalDialog.ModalDialog.prototype, __proto__: ModalDialog.ModalDialog.prototype,
_init: function() { _init: function() {
ModalDialog.ModalDialog.prototype._init.call(this); ModalDialog.ModalDialog.prototype._init.call(this, { styleClass: 'end-session-dialog' });
this._user = Gdm.UserManager.ref_default().get_user(GLib.get_user_name()); this._user = Gdm.UserManager.ref_default().get_user(GLib.get_user_name());

View File

@ -87,8 +87,9 @@ ModalDialog.prototype = {
x_align: St.Align.MIDDLE, x_align: St.Align.MIDDLE,
y_align: St.Align.START }); y_align: St.Align.START });
this._buttonLayout = new St.BoxLayout({ opacity: 220, this._buttonLayout = new St.BoxLayout({ style_class: 'modal-dialog-button-box',
vertical: false }); opacity: 220,
vertical: false });
this._dialogLayout.add(this._buttonLayout, this._dialogLayout.add(this._buttonLayout,
{ expand: true, { expand: true,
x_align: St.Align.MIDDLE, x_align: St.Align.MIDDLE,