[InfoBar] Make spacing between message and button stylable

https://bugzilla.gnome.org/show_bug.cgi?id=609401
This commit is contained in:
Florian Müllner 2010-02-09 07:28:49 +01:00
parent 32e2ff7573
commit 9a1cb9c3db
2 changed files with 11 additions and 8 deletions

View File

@ -134,18 +134,22 @@ StTooltip {
/* Overlay */ /* Overlay */
.info-bar { .info-bar {
border-radius: 3px;
border: 1px solid #5c5c5c;
background: #1e1e1e;
color: #cccccc; color: #cccccc;
font-size: 14px; font-size: 14px;
height: 26px; spacing: 8px;
} }
.info-bar-panel { .info-bar-panel {
padding: 11px; padding: 11px;
} }
.info-bar-panel > StBin {
border-radius: 3px;
border: 1px solid #5c5c5c;
background: #1e1e1e;
height: 26px;
}
.info-bar-link-button { .info-bar-link-button {
text-decoration: underline; text-decoration: underline;
} }

View File

@ -95,14 +95,13 @@ InfoBar.prototype = {
this._undo = new St.Button({ label: _('Undo'), this._undo = new St.Button({ label: _('Undo'),
style_class: 'info-bar-link-button' }); style_class: 'info-bar-link-button' });
let bin = new St.Bin({ style_class: 'info-bar', let bin = new St.Bin({ x_fill: false,
x_fill: false,
y_fill: false, y_fill: false,
x_align: St.Align.MIDDLE, x_align: St.Align.MIDDLE,
y_align: St.Align.MIDDLE }); y_align: St.Align.MIDDLE });
this.actor.set_child(bin); this.actor.set_child(bin);
let box = new St.BoxLayout(); let box = new St.BoxLayout({ style_class: 'info-bar' });
bin.set_child(box); bin.set_child(box);
this._timeoutId = 0; this._timeoutId = 0;
@ -171,7 +170,7 @@ InfoBar.prototype = {
this._timeout = false; this._timeout = false;
this._overviewWasHidden = false; this._overviewWasHidden = false;
this._label.text = text + ' '; this._label.text = text;
Tweener.addTween(this.actor, Tweener.addTween(this.actor,
{ opacity: 255, { opacity: 255,