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 682248 - Non-square tray items, insufficient horizontal padding
Non-square tray items, insufficient horizontal padding
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: message-tray
3.5.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-08-20 11:55 UTC by Allan Day
Modified: 2012-09-02 17:21 UTC
See Also:
GNOME target: ---
GNOME version: 3.5/3.6


Attachments
screenshot and mockup with layout guidance (126.60 KB, image/png)
2012-08-20 11:55 UTC, Allan Day
  Details
messageTray: Summary items should be square and have spacing (1.81 KB, patch)
2012-09-01 01:22 UTC, Debarshi Ray
needs-work Details | Review
messageTray: Summary items should be square and have spacing (2.02 KB, patch)
2012-09-01 10:28 UTC, Debarshi Ray
committed Details | Review
messageTray: Summary items should not touch the edge of the monitor (1.42 KB, patch)
2012-09-02 15:20 UTC, Debarshi Ray
none Details | Review
messageTray: Summary items should not touch the edge of the monitor (1.57 KB, patch)
2012-09-02 15:58 UTC, Debarshi Ray
none Details | Review
theme: Tweak the padding of #summary-mode (1.08 KB, patch)
2012-09-02 16:14 UTC, Debarshi Ray
committed Details | Review

Description Allan Day 2012-08-20 11:55:56 UTC
Created attachment 221822 [details]
screenshot and mockup with layout guidance

The restyled tray has a few minor layout issues. In particular, the tray items are too close together, resulting in a non-square selection highlight.

The selection highlight should be square, and added extra horizontal padding will give the tray items a bit more room to breath.

A screenshot and layout guidance is attached.
Comment 1 Debarshi Ray 2012-09-01 01:22:11 UTC
Created attachment 223114 [details] [review]
messageTray: Summary items should be square and have spacing
Comment 2 drago01 2012-09-01 10:14:13 UTC
Review of attachment 223114 [details] [review]:

Looks good.
Comment 3 drago01 2012-09-01 10:16:55 UTC
Review of attachment 223114 [details] [review]:

<magcius> rishi, "Since St.Widget does not honor the y-expand property of its children"
<magcius> rishi, by default, St.Widget uses a ClutterFixedLayout
<magcius> rishi, you probably want to switch it to use a ClutterBinLayout
<magcius> rishi, by specifying the layout-manager property.
Comment 4 Debarshi Ray 2012-09-01 10:28:06 UTC
Created attachment 223128 [details] [review]
messageTray: Summary items should be square and have spacing

Changed the tray actor to use a ClutterBinLayout so that we don't need to hardcode the summaryBin height.
Comment 5 Jasper St. Pierre (not reading bugmail) 2012-09-01 10:28:57 UTC
Review of attachment 223128 [details] [review]:

Sure.
Comment 6 Debarshi Ray 2012-09-01 11:15:27 UTC
commit 69735940ec1519f5e9abbdcda6c43335cee69b86
Author: Debarshi Ray <debarshir@gnome.org>
Date:   Sat Sep 1 03:21:51 2012 +0200

    messageTray: Summary items should be square and have spacing
    
    Each summary icon is 48x48 with a padding of 6px on each side. Thus,
    each summary item is 60px wide. Therefore the summary mode should be
    60px high instead of 72px.
    
    Changed the tray actor to use a ClutterBinLayout so that it honors the
    y-expand property of its children.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682248
Comment 7 Debarshi Ray 2012-09-02 15:20:27 UTC
Created attachment 223201 [details] [review]
messageTray: Summary items should not touch the edge of the monitor
Comment 8 Debarshi Ray 2012-09-02 15:58:32 UTC
Created attachment 223204 [details] [review]
messageTray: Summary items should not touch the edge of the monitor

Get rid of the padding values of #summary-mode, which makes no sense
for the new tray, and use the .summary-source class instead.
Comment 9 Debarshi Ray 2012-09-02 16:14:53 UTC
Created attachment 223206 [details] [review]
theme: Tweak the padding of #summary-mode

Change the padding values of #summary-mode to be 6px on right and left
to match the values in .summary-source, which determine the padding
between the top and bottom edges of the tray and the items.
Comment 10 Rui Matos 2012-09-02 16:25:59 UTC
Review of attachment 223206 [details] [review]:

Yes, this looks correct.
Comment 11 Debarshi Ray 2012-09-02 17:21:04 UTC
commit 3013a87bd251298e9ee58aef6633ff6660dbb6c8
Author: Debarshi Ray <debarshir@gnome.org>
Date:   Sun Sep 2 17:19:45 2012 +0200

    theme: Tweak the padding of #summary-mode
    
    Change the padding values of #summary-mode to be 6px on right and left
    to match the values in .summary-source, which determine the padding
    between the top and bottom edges of the tray and the items.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682248