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 655627 - Menu popups should match the mockups
Menu popups should match the mockups
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-07-30 12:05 UTC by Allan Day
Modified: 2011-08-02 10:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Theme tweaks patch (937 bytes, patch)
2011-07-30 12:05 UTC, Allan Day
reviewed Details | Review
Revised theme patch (1.10 KB, patch)
2011-07-30 13:41 UTC, Allan Day
committed Details | Review
panelMenu: add a gap between the panel and its menus (1.44 KB, patch)
2011-07-30 17:27 UTC, Dan Winship
reviewed Details | Review
panelMenu: add a gap between the panel and its menus (5.29 KB, patch)
2011-08-01 15:24 UTC, Dan Winship
committed Details | Review
Message tray and panel box pointers should match (1.12 KB, patch)
2011-08-01 21:14 UTC, Allan Day
committed Details | Review

Description Allan Day 2011-07-30 12:05:24 UTC
Created attachment 192906 [details] [review]
Theme tweaks patch

There are a few minor discrepancies at the moment which means that the menu popups don't look as good as they could.

The attached patch includes the necessary theme changes. The other thing that needs doing is a 2px vertical gap between the panel edge and the tip of the boxpointer
Comment 1 Florian Müllner 2011-07-30 13:16:41 UTC
Review of attachment 192906 [details] [review]:

Sure.

The commit message could be improved; at the very least, the bug URL needs to be added (on its own line at the end, separated by a blank line from the preceding block). Though ideally, it takes the form of

subject: summary of the change

A body providing more details about the change and the
reasoning for it.

http://bugzilla.gnome.org/show_bug.cgi?id=foobar


Tip of the day: use git-bz (from Owen's blog), it makes attaching patches to bugzilla suck quite a bit less (and also takes care of appending the bug URL).
Comment 2 Allan Day 2011-07-30 13:41:38 UTC
Created attachment 192910 [details] [review]
Revised theme patch

Thanks for the advice Florian. I hope this is better.
Comment 3 Florian Müllner 2011-07-30 14:08:13 UTC
Review of attachment 192910 [details] [review]:

The body of the commit message needs to be split into multiple lines (~75 characters each), otherwise good to push.
(You didn't really explain the reasoning behind any of the changes - it's not common for style changes, but personally I'd find it quite educational)
Comment 4 Jasper St. Pierre (not reading bugmail) 2011-07-30 14:22:47 UTC
Other things about the commit message: the literal word "Subject" wasn't intended. And like the English rule about how you never say "this essay explains why" in essays, "this patch" is similarly bad.

  theme: Improve menu boxpointer arrow styling

  Make the menu popups fully match the mockups by changing the borders and dimensions.
Comment 5 Allan Day 2011-07-30 16:12:03 UTC
(In reply to comment #3)
> Review of attachment 192910 [details] [review]:
> 
> The body of the commit message needs to be split into multiple lines (~75
> characters each), otherwise good to push.
> (You didn't really explain the reasoning behind any of the changes - it's not
> common for style changes, but personally I'd find it quite educational)

Done done and done: http://git.gnome.org/browse/gnome-shell/commit/?id=acedb60abe032dc0521c27a395d0d28f05c80642

Do we need a separate bug for adding the gap between the pointer and panel edge?
Comment 6 Dan Winship 2011-07-30 17:27:54 UTC
Created attachment 192915 [details] [review]
panelMenu: add a gap between the panel and its menus

The specs call for a 2 pixel gap between the panel and its menus,
though we need to specify this as 4 pixels, since it's relative to the
bottom of the icon/title, not the bottom of the panel (up until now,
the point of the menu arrow was actually overlapping the menu's
highlight underline).

====

does this look right?
Comment 7 Florian Müllner 2011-07-30 18:12:04 UTC
Review of attachment 192915 [details] [review]:

Could we expose the gap in the style? It's a tad bit ugly to assume certain style properties ("2 pixel padding between icon and panel bottom") in the code ...
Comment 8 Allan Day 2011-07-31 09:34:40 UTC
(In reply to comment #6)
...
> 
> does this look right?

I've tested the patch. It looks good.
Comment 9 Dan Winship 2011-08-01 15:24:29 UTC
Created attachment 192987 [details] [review]
panelMenu: add a gap between the panel and its menus

now with CSS!
Comment 10 Florian Müllner 2011-08-01 15:41:38 UTC
Review of attachment 192987 [details] [review]:

Good to commit after updating the commit message to mention that the gap parameter was moved to CSS.
Comment 11 Dan Winship 2011-08-01 15:48:30 UTC
Attachment 192987 [details] pushed as 2403fd0 - panelMenu: add a gap between the panel and its menus
Comment 12 Allan Day 2011-08-01 21:14:06 UTC
Created attachment 193015 [details] [review]
Message tray and panel box pointers should match

The message tray and panel box pointers should be themed in the same way.
Comment 13 Florian Müllner 2011-08-01 21:51:28 UTC
Review of attachment 193015 [details] [review]:

Sure.