Merge lp:~elementary-apps/wingpanel-indicator-sound/reduce-margins into lp:~wingpanel-devs/wingpanel-indicator-sound/trunk

Proposed by Danielle Foré
Status: Rejected
Rejected by: Danielle Foré
Proposed branch: lp:~elementary-apps/wingpanel-indicator-sound/reduce-margins
Merge into: lp:~wingpanel-devs/wingpanel-indicator-sound/trunk
Diff against target: 101 lines (+9/-13)
3 files modified
src/Indicator.vala (+2/-2)
src/Widgets/IndicatorScale.vala (+2/-4)
src/Widgets/MprisGui.vala (+5/-7)
To merge this branch: bzr merge lp:~elementary-apps/wingpanel-indicator-sound/reduce-margins
Reviewer Review Type Date Requested Status
Cody Garver (community) Needs Resubmitting
Review via email: mp+260900@code.launchpad.net

Commit message

reduce extra margins

Description of the change

Reduces extra margins to match notification margin (#1461294)

To post a comment you must log in.
Revision history for this message
Cody Garver (codygarver) wrote :

Conflicts with trunk

review: Needs Resubmitting
Revision history for this message
Djax (parnold-x) wrote :

I included this already...

Unmerged revisions

5. By Danielle Foré

kill extra margins

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Indicator.vala'
2--- src/Indicator.vala 2015-06-02 19:41:45 +0000
3+++ src/Indicator.vala 2015-06-02 23:17:43 +0000
4@@ -189,7 +189,7 @@
5 main_grid.attach (first_seperator, 0, position++, 1, 1);
6
7 volume_scale = new Widgets.IndicatorScale ("audio-volume-high-symbolic", true, 0.0, max_volume, 0.01);
8- volume_scale.margin_start = 12;
9+ volume_scale.margin_start = 6;
10
11 volume_scale.get_switch ().active = volume_control.mute;
12 volume_scale.get_switch ().notify["active"].connect (() => {
13@@ -216,7 +216,7 @@
14 main_grid.attach (new Wingpanel.Widgets.IndicatorSeparator (), 0, position++, 1, 1);
15
16 mic_scale = new Widgets.IndicatorScale ("audio-input-microphone-symbolic", true, 0.0, 1.0, 0.01);
17- mic_scale.margin_start = 12;
18+ mic_scale.margin_start = 6;
19
20 mic_scale.get_switch ().notify["active"].connect (() => {
21 if (mic_scale.get_switch ().active) {
22
23=== modified file 'src/Widgets/IndicatorScale.vala'
24--- src/Widgets/IndicatorScale.vala 2015-06-02 19:41:45 +0000
25+++ src/Widgets/IndicatorScale.vala 2015-06-02 23:17:43 +0000
26@@ -22,8 +22,6 @@
27
28 public IndicatorScale (string icon, bool active = false, double min, double max, double step) {
29 this.hexpand = true;
30- this.margin_top = 6;
31- this.margin_bottom = 3;
32
33 image = new Gtk.Image.from_icon_name (icon, Gtk.IconSize.DIALOG);
34 image.halign = Gtk.Align.START;
35@@ -31,7 +29,7 @@
36 this.attach (image, 0, 0, 1, 1);
37
38 scale_widget = new Gtk.Scale.with_range (Gtk.Orientation.HORIZONTAL, min, max, step);
39- scale_widget.margin_start = 12;
40+ scale_widget.margin_start = 6;
41 scale_widget.set_size_request (175, -1);
42 scale_widget.set_draw_value (false);
43 this.attach (scale_widget, 1, 0, 1, 1);
44@@ -39,7 +37,7 @@
45 switch_widget = new Gtk.Switch ();
46 switch_widget.active = active;
47 switch_widget.halign = Gtk.Align.END;
48- switch_widget.margin_start = 12;
49+ switch_widget.margin_start = 6;
50 switch_widget.margin_end = 0;
51
52 this.attach (switch_widget, 2, 0, 1, 1);
53
54=== modified file 'src/Widgets/MprisGui.vala'
55--- src/Widgets/MprisGui.vala 2015-06-02 19:41:45 +0000
56+++ src/Widgets/MprisGui.vala 2015-06-02 23:17:43 +0000
57@@ -39,14 +39,14 @@
58 * @param client The underlying MprisClient instance to use
59 */
60 public ClientWidget(Services.MprisClient client) {
61- Object(orientation: Gtk.Orientation.VERTICAL, spacing: 3);
62+ Object(orientation: Gtk.Orientation.VERTICAL, spacing: 0);
63
64 this.client = client;
65 load_remote_art_cancel = new Cancellable ();
66
67 player_revealer = new Gtk.Revealer ();
68 player_revealer.reveal_child = true;
69- var player_box = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 3);
70+ var player_box = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);
71
72 if (client.player.desktop_entry != "") {
73 var ainfo = new DesktopAppInfo(client.player.desktop_entry + ".desktop");
74@@ -63,10 +63,8 @@
75 background.set_from_icon_name("emblem-music-symbolic", Gtk.IconSize.DIALOG);
76 }
77
78- background.margin_start = 12;
79+ background.margin_start = 6;
80 background.margin_end = 6;
81- this.margin_top = 6;
82- this.margin_bottom = 6;
83
84 player_box.pack_start(background, false, false, 0);
85
86@@ -84,7 +82,7 @@
87 titles.pack_start(artist_label, false, false, 0);
88 player_box.pack_start(titles, false, false, 0);
89
90- var controls = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 6);
91+ var controls = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);
92
93 var btn = new Gtk.Button.from_icon_name("media-seek-backward-symbolic", Gtk.IconSize.LARGE_TOOLBAR);
94 btn.set_sensitive(false);
95@@ -268,4 +266,4 @@
96 artist_label.set_text(_("Not currently playing"));
97 }
98 }
99-}
100\ No newline at end of file
101+}

Subscribers

People subscribed via source and target branches

to all changes: