[PATCH 1/2] [messageTray] apply background to summary only
- From: Florian Scandella <flo chilicode com>
- Subject: [PATCH 1/2] [messageTray] apply background to summary only
- Date: Sat, 6 Mar 2010 17:00:33 +0100
---
data/theme/gnome-shell.css | 6 +++---
js/ui/messageTray.js | 6 +++++-
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 43c52b2..70a9a73 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -607,9 +607,6 @@ StTooltip {
/* Message Tray */
#message-tray {
- background-gradient-direction: vertical;
- background-gradient-start: rgba(0,0,0,0.01);
- background-gradient-end: rgba(0,0,0,0.95);
height: 28px;
}
@@ -647,6 +644,9 @@ StTooltip {
}
#summary-mode {
+ background-gradient-direction: vertical;
+ background-gradient-start: rgba(0,0,0,0.01);
+ background-gradient-end: rgba(0,0,0,0.95);
spacing: 10px;
padding: 2px 4px;
}
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index fe7a081..c2c9ac6 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -372,6 +372,7 @@ MessageTray.prototype = {
this.actor.add(this._summaryBin);
this._summary = new St.BoxLayout({ name: 'summary-mode',
reactive: true });
+ this._summary.hide();
this._summaryBin.add(this._summary, { x_align: St.Align.END,
x_fill: false,
expand: true });
@@ -443,6 +444,7 @@ MessageTray.prototype = {
iconBox.child = source.createIcon(ICON_SIZE);
this._summary.insert_actor(iconBox, 0);
this._summaryNeedsToBeShown = true;
+ this._summary.show();
this._icons[source.id] = iconBox;
this._sources[source.id] = source;
@@ -474,8 +476,10 @@ MessageTray.prototype = {
this._summary.remove_actor(this._icons[source.id]);
if (this._summary.get_children().length > 0)
this._summaryNeedsToBeShown = true;
- else
+ else {
this._summaryNeedsToBeShown = false;
+ this._summary.hide();
+ }
delete this._icons[source.id];
delete this._sources[source.id];
--
1.7.0
--=-hk6uqpbf5ZuVVSjVzvxD
Content-Disposition: attachment; filename="0002-messageTray-add-option-to-disable-autohide.patch"
Content-Type: text/x-patch; name="0002-messageTray-add-option-to-disable-autohide.patch"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]