Merge lp:~roryj/wingpanel/fix-menu-margins into lp:~elementary-pantheon/wingpanel/trunk-0.3.x

Proposed by Rory
Status: Merged
Approved by: Danielle Foré
Approved revision: 194
Merged at revision: 192
Proposed branch: lp:~roryj/wingpanel/fix-menu-margins
Merge into: lp:~elementary-pantheon/wingpanel/trunk-0.3.x
Diff against target: 25 lines (+4/-4)
1 file modified
src/Indicator/IndicatorObjectEntry.vala (+4/-4)
To merge this branch: bzr merge lp:~roryj/wingpanel/fix-menu-margins
Reviewer Review Type Date Requested Status
elementary Pantheon team Pending
Review via email: mp+244777@code.launchpad.net

Commit message

Increase start and end margins by 1, decrease top and bottom margins by 10

Description of the change

Increase menu margins by 1 pixel to match normal menus.

(Definitely not being pedantic)

To post a comment you must log in.
Revision history for this message
Danielle Foré (danrabbit) wrote :

While you're in here, can you change margin_left and margin_right to margin_start and margin_end? left and right are deprecated

Otherwise, it looks fine to me :)

lp:~roryj/wingpanel/fix-menu-margins updated
193. By Rory

Change to margin_start/margin_end

Revision history for this message
Rory (roryj) wrote :

Done. While I'm at it, are the top and bottom margins correct?... they are much larger than the equivalent context menu and do look slightly strange to me!

Revision history for this message
Rory (roryj) wrote :

And I'm assuming this bug https://bugs.launchpad.net/wingpanel/+bug/1349161 can be closed as the menus look fine to me with gtk 3.14.6?

Revision history for this message
Danielle Foré (danrabbit) wrote :

Hey you're right! It does seem to be fixed.

I'd like to get feedback from someone on gtk 3.12 before merging, but to my eye it looks like reducing the top and bottom margins would make it look a little more like regular menus. Something like:
            entry.menu.margin_top = 18;
            entry.menu.margin_bottom = 8;

lp:~roryj/wingpanel/fix-menu-margins updated
194. By Rory

Decrease margin_top/margin_bottom by 10px.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Indicator/IndicatorObjectEntry.vala'
2--- src/Indicator/IndicatorObjectEntry.vala 2014-10-05 18:20:38 +0000
3+++ src/Indicator/IndicatorObjectEntry.vala 2014-12-15 21:14:13 +0000
4@@ -108,8 +108,8 @@
5 }
6
7 private void setup_margin (Gtk.Widget widget) {
8- widget.margin_left = 10;
9- widget.margin_right = 9;
10+ widget.margin_start = 11;
11+ widget.margin_end = 10;
12 }
13
14 private void setup_drawing () {
15@@ -117,8 +117,8 @@
16
17 buffer = new Granite.Drawing.BufferSurface (100, 100);
18
19- entry.menu.margin_top = 28;
20- entry.menu.margin_bottom = 18;
21+ entry.menu.margin_top = 18;
22+ entry.menu.margin_bottom = 8;
23
24 Granite.Widgets.Utils.set_theming (entry.menu, MENU_STYLESHEET, null,
25 Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);

Subscribers

People subscribed via source and target branches

to all changes: