[gnome-shell] [InfoBar] Make spacing between message and button stylable
- From: Florian Müllner <fmuellner src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] [InfoBar] Make spacing between message and button stylable
- Date: Wed, 10 Feb 2010 09:17:05 +0000 (UTC)
commit 9a1cb9c3db60995df595db60a6fa1785c62df6e6
Author: Florian Müllner <fmuellner src gnome org>
Date: Tue Feb 9 07:28:49 2010 +0100
[InfoBar] Make spacing between message and button stylable
https://bugzilla.gnome.org/show_bug.cgi?id=609401
data/theme/gnome-shell.css | 12 ++++++++----
js/ui/overview.js | 7 +++----
2 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 4cd6209..af8eb70 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -134,18 +134,22 @@ StTooltip {
/* Overlay */
.info-bar {
- border-radius: 3px;
- border: 1px solid #5c5c5c;
- background: #1e1e1e;
color: #cccccc;
font-size: 14px;
- height: 26px;
+ spacing: 8px;
}
.info-bar-panel {
padding: 11px;
}
+.info-bar-panel > StBin {
+ border-radius: 3px;
+ border: 1px solid #5c5c5c;
+ background: #1e1e1e;
+ height: 26px;
+}
+
.info-bar-link-button {
text-decoration: underline;
}
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 008bebd..8f9a895 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -95,14 +95,13 @@ InfoBar.prototype = {
this._undo = new St.Button({ label: _('Undo'),
style_class: 'info-bar-link-button' });
- let bin = new St.Bin({ style_class: 'info-bar',
- x_fill: false,
+ let bin = new St.Bin({ x_fill: false,
y_fill: false,
x_align: St.Align.MIDDLE,
y_align: St.Align.MIDDLE });
this.actor.set_child(bin);
- let box = new St.BoxLayout();
+ let box = new St.BoxLayout({ style_class: 'info-bar' });
bin.set_child(box);
this._timeoutId = 0;
@@ -171,7 +170,7 @@ InfoBar.prototype = {
this._timeout = false;
this._overviewWasHidden = false;
- this._label.text = text + ' ';
+ this._label.text = text;
Tweener.addTween(this.actor,
{ opacity: 255,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]