Merge lp:~yifengzhan-sysu/screenshot-tool/screenshot-tool into lp:~elementary-apps/screenshot-tool/trunk

Proposed by ethan
Status: Rejected
Rejected by: Danielle Foré
Proposed branch: lp:~yifengzhan-sysu/screenshot-tool/screenshot-tool
Merge into: lp:~elementary-apps/screenshot-tool/trunk
Diff against target: 66 lines (+23/-7)
2 files modified
src/Screenshot.vala (+1/-1)
src/ScreenshotWindow.vala (+22/-6)
To merge this branch: bzr merge lp:~yifengzhan-sysu/screenshot-tool/screenshot-tool
Reviewer Review Type Date Requested Status
Danielle Foré Disapprove
Review via email: mp+275486@code.launchpad.net

Description of the change

add the theme switch

To post a comment you must log in.
108. By ethan

change initial theme

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

I'm going to reject this. For a utility which displays no content and that you will only interact with momentarily, this seems silly.

review: Disapprove

Unmerged revisions

108. By ethan

change initial theme

107. By ethan

add theme switch

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Screenshot.vala'
2--- src/Screenshot.vala 2015-01-21 18:58:11 +0000
3+++ src/Screenshot.vala 2015-10-23 06:38:54 +0000
4@@ -87,7 +87,7 @@
5 Intl.textdomain (Build.GETTEXT_PACKAGE);
6
7 Gtk.init (ref args);
8- Gtk.Settings.get_default ().gtk_application_prefer_dark_theme = true;
9+ Gtk.Settings.get_default ().gtk_application_prefer_dark_theme = false;
10
11 app = new ScreenshotApp ();
12
13
14=== modified file 'src/ScreenshotWindow.vala'
15--- src/ScreenshotWindow.vala 2015-10-08 16:31:13 +0000
16+++ src/ScreenshotWindow.vala 2015-10-23 06:38:54 +0000
17@@ -96,7 +96,13 @@
18 /**
19 * Effects area selection
20 */
21+ var theme_label = new Gtk.Label(_("Change theme:"));
22 var pointer_label = new Gtk.Label (_("Grab mouse pointer:"));
23+
24+ theme_label.halign = Gtk.Align.END;
25+ var theme_switch = new Gtk.Switch();
26+ theme_switch.halign = Gtk.Align.START;
27+
28 pointer_label.halign = Gtk.Align.END;
29 var pointer_switch = new Gtk.Switch ();
30 pointer_switch.halign = Gtk.Align.START;
31@@ -118,12 +124,14 @@
32
33 // Pack second part of the grid
34 grid.attach (prop_label, 0, 3, 1, 1);
35- grid.attach (pointer_label, 0, 4, 1, 1);
36- grid.attach (pointer_switch, 1, 4, 1, 1);
37- grid.attach (close_label, 0, 5, 1, 1);
38- grid.attach (close_switch, 1, 5, 1, 1);
39- grid.attach (delay_label, 0, 6, 1, 1);
40- grid.attach (delay_spin, 1, 6, 1, 1);
41+ grid.attach (theme_label, 0, 4, 1, 1);
42+ grid.attach (theme_switch, 1, 4, 1, 1);
43+ grid.attach (pointer_label, 0, 5, 1, 1);
44+ grid.attach (pointer_switch, 1, 5, 1, 1);
45+ grid.attach (close_label, 0, 6, 1, 1);
46+ grid.attach (close_switch, 1, 6, 1, 1);
47+ grid.attach (delay_label, 0, 7, 1, 1);
48+ grid.attach (delay_spin, 1, 7, 1, 1);
49
50 // Take button
51 var take_btn = new Gtk.Button.with_label (_("Take Screenshot"));
52@@ -170,6 +178,14 @@
53 present();
54 });
55
56+ theme_switch.notify["active"].connect(() => {
57+ if(theme_switch.active){
58+ Gtk.Settings.get_default().gtk_application_prefer_dark_theme = true;
59+ }else{
60+ Gtk.Settings.get_default().gtk_application_prefer_dark_theme = false;
61+ }
62+ });
63+
64 pointer_switch.notify["active"].connect (() => {
65 if (pointer_switch.active) {
66 settings.set_boolean ("mouse-pointer", true);

Subscribers

People subscribed via source and target branches

to all changes: