Merge lp:~tombeckmann/switchboard/white-bg into lp:~elementary-pantheon/switchboard/switchboard

Proposed by Tom Beckmann
Status: Merged
Merged at revision: 311
Proposed branch: lp:~tombeckmann/switchboard/white-bg
Merge into: lp:~elementary-pantheon/switchboard/switchboard
Diff against target: 33 lines (+9/-0)
1 file modified
Switchboard/switchboard-app.vala (+9/-0)
To merge this branch: bzr merge lp:~tombeckmann/switchboard/white-bg
Reviewer Review Type Date Requested Status
elementary Pantheon team Pending
Review via email: mp+125862@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Cassidy James Blaede (cassidyjames) wrote :

Was there a bug report or design linked to this?

lp:~tombeckmann/switchboard/white-bg updated
311. By Tom Beckmann

Make switchboard's background white

Revision history for this message
Cody Garver (codygarver) wrote :

Yes Cassidy, jump on IRC.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Switchboard/switchboard-app.vala'
2--- Switchboard/switchboard-app.vala 2012-09-22 17:33:26 +0000
3+++ Switchboard/switchboard-app.vala 2012-09-22 20:16:18 +0000
4@@ -115,6 +115,7 @@
5 category_view = new Switchboard.CategoryView ();
6 category_view.plug_selected.connect ((title, executable, @extern) => load_plug (title, executable, @extern));
7 category_view.margin_top = 12;
8+ category_view.draw.connect (draw_white);
9
10 scrollable_view = new Gtk.ScrolledWindow (null, null);
11
12@@ -123,6 +124,7 @@
13 grid.set_hexpand (true);
14 grid.set_vexpand (true);
15 grid.attach (toolbar, 0, 0, 1, 1);
16+ grid.draw.connect (draw_white);
17 toolbar.set_hexpand (true);
18
19 alert_view = new Granite.Widgets.EmbeddedAlert ();
20@@ -196,6 +198,13 @@
21 }
22 }
23
24+ bool draw_white (Cairo.Context cr) {
25+ cr.rectangle (0, 0, category_view.get_allocated_width (), category_view.get_allocated_height ());
26+ cr.set_source_rgb (1, 1, 1);
27+ cr.fill ();
28+ return false;
29+ }
30+
31 void shut_down () {
32 plug_closed ();
33 }

Subscribers

People subscribed via source and target branches

to all changes: