After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 677213 - Restyle the message tray
Restyle the message tray
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: message-tray
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
touch
Depends on:
Blocks:
 
 
Reported: 2012-05-31 17:42 UTC by Allan Day
Modified: 2013-01-16 16:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
messageTray: restyle the message tray (119.77 KB, patch)
2012-07-30 17:23 UTC, Ana Risteska
needs-work Details | Review
Patch: removing the labels (17.02 KB, patch)
2012-08-08 17:28 UTC, Ana Risteska
accepted-commit_now Details | Review
Patch: restyle the message tray (39.22 KB, patch)
2012-08-08 17:30 UTC, Ana Risteska
none Details | Review
Patch: restyle the message tray (39.28 KB, patch)
2012-08-08 17:44 UTC, Ana Risteska
needs-work Details | Review
Patch: removing the labels (16.84 KB, patch)
2012-08-10 18:41 UTC, Ana Risteska
committed Details | Review
Patch: restyle the message tray (38.81 KB, patch)
2012-08-10 18:42 UTC, Ana Risteska
needs-work Details | Review
Patch: restyle the message tray (6.24 KB, patch)
2012-08-13 15:57 UTC, Ana Risteska
committed Details | Review

Description Allan Day 2012-05-31 17:42:45 UTC
The updated message tray design [1] calls for a new layout and visual style.

 * Use 48x48px icons for message tray items (with no text label [2])
 * Give the tray a new background - this should be a solid colour with a texture and inset shadow on the upper-inside edge

Just let me know if you need assets for the background colour and texture.

See: http://git.gnome.org/browse/gnome-shell-design/plain/mockups/static/notifications-chat-tray.png

[1] https://live.gnome.org/GnomeShell/Design/Guidelines/MessageTray/#A3.6_Refresh_Proposal

[2] The one exception to this might be contacts that don't have a picture associated with them. We need to provide further design guidance here.
Comment 1 André Klapper 2012-05-31 20:02:13 UTC
[I want aday to set a proper "Version" field!]
Comment 2 Jasper St. Pierre (not reading bugmail) 2012-05-31 20:09:38 UTC
It looks like that all windows and the wallpaper is pushed up, under the panel? This would probably cause a lot of people motion sickness, and I'm curious how this is supposed to interact inside the overview.

Do we have motion mockups?
Comment 3 Jakub Steiner 2012-06-01 12:35:05 UTC
As discussed on IRC, it's only the message bar that pushed the content up. Banners will continue being overlays.
Comment 4 Jakub Steiner 2012-07-19 11:52:23 UTC
In terms of assets, the tile texture for the message tray background is http://git.gnome.org/browse/gnome-shell-design/plain/assets/noise-texture.png and the color itself is #2e3436
Comment 5 Ana Risteska 2012-07-30 17:23:13 UTC
Created attachment 219919 [details] [review]
messageTray: restyle the message tray

The patch implements the new visual style for the message tray,
that is now larger and has textured background. The icons are
also larger and the title of the source is no longer shown.
Comment 6 Jasper St. Pierre (not reading bugmail) 2012-07-31 13:05:12 UTC
Review of attachment 219919 [details] [review]:

I'd split this up into two commits: one to remove the labels, and one to do the overall restyle.

::: js/ui/messageTray.js
@@ +1120,3 @@
     Name: 'MessageTraySource',
 
+    SOURCE_ICON_SIZE: 48,

Why the rename?

@@ +1772,3 @@
     _onSummaryItemHoverChanged: function(summaryItem) {
         if (summaryItem.actor.hover)
+            summaryItem.actor.add_style_pseudo_class('hovered');

This is unneceessary; StWidget already adds a 'hover' class out of the box.

@@ +2179,3 @@
                           };
         if (!this._notification.expanded)
+            // ana

Welp.

@@ +2180,3 @@
         if (!this._notification.expanded)
+            // ana
+            tweenParams.y = - this.actor.height/2;

Style issues:

    tweenParams.y = -this.actor.height / 2;

(yes, the space before the unary - is already wrong in the existing code)
Comment 7 Jasper St. Pierre (not reading bugmail) 2012-07-31 13:08:26 UTC
Review of attachment 219919 [details] [review]:

::: data/theme/gnome-shell.css
@@ +1147,3 @@
 /* Message Tray */
 #message-tray {
+    background: #2e3436 url(noise-texture.png) repeat 0 0;

I didn't add support for the background-repeat shorthand in my patch, so you're going to have to add background-repeat manually:

    background: #2e3436 url(noise-texture.png);
    background-repeat: repeat;
Comment 8 Jasper St. Pierre (not reading bugmail) 2012-07-31 13:27:03 UTC
Just a note, I created fixes for almost all of these last night and pushed them to the wip/message-tray branch. You should just be able to squash these commits in.
Comment 9 Jasper St. Pierre (not reading bugmail) 2012-08-03 15:42:42 UTC
background-repeat has landed in master.
Comment 10 Ana Risteska 2012-08-08 17:28:05 UTC
Created attachment 220707 [details] [review]
Patch: removing the labels
Comment 11 Ana Risteska 2012-08-08 17:30:58 UTC
Created attachment 220708 [details] [review]
Patch: restyle the message tray

I split the patch in two separate ones with Jasper's fixes squashed in. 
Thank you, Jasper!
Comment 12 Ana Risteska 2012-08-08 17:44:50 UTC
Created attachment 220709 [details] [review]
Patch: restyle the message tray
Comment 13 Jasper St. Pierre (not reading bugmail) 2012-08-08 19:39:13 UTC
Review of attachment 220709 [details] [review]:

::: data/Makefile.am
@@ +38,3 @@
 	theme/logged-in-indicator.svg		\
+	theme/message-tray-background.png       \
+	theme/noise-texture.png			\

Bad rebase? noise-texture.png is already in here.

::: js/ui/messageTray.js
@@ -1782,3 @@
-    _onSummaryItemHoverChanged: function(summaryItem) {
-        if (summaryItem.actor.hover)
-            summaryItem.actor.add_style_pseudo_class('hovered');

This seems like a bad rebase. The original is:

    _onSummaryItemHoverChanged: function(summaryItem) {
        if (summaryItem.actor.hover)
            this._setExpandedSummaryItem(summaryItem);
    },

@@ +2224,3 @@
                           };
         if (!this._notification.expanded)
+            tweenParams.y = -this.actor.height / 2;

This is still wrong.
Comment 14 Jasper St. Pierre (not reading bugmail) 2012-08-08 19:40:09 UTC
Review of attachment 220707 [details] [review]:

Commit message needs work; it shouldn't say (fixup), and it should start with a verb, not a gerund:

    messageTray: Remove the labels of items in the message tray.

Looks good, otherwise.

::: data/theme/gnome-shell.css
@@ -1394,3 @@
- * icons, because then the summary would be 0x0 when there were no
- * icons in it, and so you wouldn't be able to hover over it to
- * activate it.

Heh, this has long been incorrect.
Comment 15 Ana Risteska 2012-08-10 18:41:34 UTC
Created attachment 220904 [details] [review]
Patch: removing the labels
Comment 16 Ana Risteska 2012-08-10 18:42:53 UTC
Created attachment 220905 [details] [review]
Patch: restyle the message tray

Thanks for the feedback!
Comment 17 Jasper St. Pierre (not reading bugmail) 2012-08-10 19:41:26 UTC
Review of attachment 220905 [details] [review]:

::: js/ui/messageTray.js
@@ +1415,3 @@
     Name: 'MessageTray',
 
+    TWEEN_PARAMETER_Y: 36,

No. Calculate the banner height appropriately. See if this._notificationBin.height works,

@@ -2188,3 @@
         //
-        // We tween any notification showing in the banner mode to banner height
-        // (this._notificationBin.y = -this.actor.height).

This is a useful comment. Don't remove it.
Comment 18 Jasper St. Pierre (not reading bugmail) 2012-08-10 19:41:46 UTC
Review of attachment 220904 [details] [review]:

Sure.
Comment 19 Jasper St. Pierre (not reading bugmail) 2012-08-10 20:23:11 UTC
Review of attachment 220905 [details] [review]:

One other thing I noticed:

        let notificationExpanded = this._notificationBin.y < - this.actor.height;

I'm going to change that to track it properly.
Comment 20 Ana Risteska 2012-08-13 15:57:10 UTC
Created attachment 221028 [details] [review]
Patch: restyle the message tray
Comment 21 Jasper St. Pierre (not reading bugmail) 2012-08-13 17:46:48 UTC
Review of attachment 221028 [details] [review]:

Looks good!
Comment 22 Dave 2012-10-19 07:30:44 UTC
Thank you for creating a crafty, smarter, revamped message-tray for Gnome3.6 for the in time for Ubuntu 12.10 release, but I was in love with the cleverly contrasted shadow design the previous tray had.  I noticed my entire screen lifts up when checking on my indicators which was a shock at first.  

I understand that some want a design similar to another OS's tray, but I thought that the simple, shadow design that contrasted with the top panel, had an amazing effect on Gnome, as well as the entire shell's outlook with the Dash.  

If there is anyway possible, to revert or change the current chunky, screen-moving message tray back to it's previous shadowy design, please let me know.

Again, I appreciate all of your hard work with your free time, but again, a lot of us had fallen in love with the shadow.