Merge lp:~philip.scott/pantheon-photos/dark-app into lp:~pantheon-photos/pantheon-photos/trunk

Proposed by Felipe Escoto
Status: Rejected
Rejected by: Danielle Foré
Proposed branch: lp:~philip.scott/pantheon-photos/dark-app
Merge into: lp:~pantheon-photos/pantheon-photos/trunk
Diff against target: 201 lines (+22/-21)
5 files modified
src/Application.vala (+1/-1)
src/CollectionPage.vala (+2/-2)
src/PhotoPage.vala (+14/-14)
src/library/LibraryWindow.vala (+3/-2)
src/sidebar/Rating.vala (+2/-2)
To merge this branch: bzr merge lp:~philip.scott/pantheon-photos/dark-app
Reviewer Review Type Date Requested Status
Danielle Foré Disapprove
Review via email: mp+301577@code.launchpad.net

Commit message

Use dark theme for the main Photos app

Description of the change

Dark app?

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

I think this needs to be put on hold because we have some unsolved issues, specifically certain icons not using the symbolic variant or being otherwise unlegible on a dark background. We haven't done any testing here at all. So I would say hold until Loki +1 and then we don't have to worry about breaking things as much since we'll have time to fix them

2979. By Corentin Noël

Use latest Google Photo API

2980. By Launchpad Translations on behalf of pantheon-photos

Launchpad automatic translations update.

2981. By Felipe Escoto

Dark app MVP

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

Gonna reject this since it contains some stuff that doesn't apply anymore

review: Disapprove

Unmerged revisions

2981. By Felipe Escoto

Dark app MVP

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Application.vala'
2--- src/Application.vala 2016-06-27 10:37:18 +0000
3+++ src/Application.vala 2016-08-01 21:27:43 +0000
4@@ -46,6 +46,7 @@
5 about_artists = {};
6 about_translators = _("translator-credits");
7 about_license_type = Gtk.License.LGPL_2_1;
8+ Gtk.Settings.get_default().set("gtk-application-prefer-dark-theme", true);
9 }
10
11 private Application (bool is_direct) {
12@@ -60,7 +61,6 @@
13 app_icon = "multimedia-photo-viewer";
14 app_launcher = "pantheon-photos-viewer.desktop";
15 program_name = _("Photo Viewer");
16- Gtk.Settings.get_default().set("gtk-application-prefer-dark-theme", true);
17 flags = GLib.ApplicationFlags.HANDLES_OPEN | GLib.ApplicationFlags.NON_UNIQUE;
18 } else {
19 // we've been invoked in library mode; set up for uniqueness and handling
20
21=== modified file 'src/CollectionPage.vala'
22--- src/CollectionPage.vala 2014-09-29 15:08:44 +0000
23+++ src/CollectionPage.vala 2016-08-01 21:27:43 +0000
24@@ -69,7 +69,7 @@
25 connect_slider (zoom_slider_assembly);
26 get_toolbar ().insert (zoom_slider_assembly, -1);
27
28- Gtk.Image start_image = new Gtk.Image.from_icon_name ("media-playback-start", Gtk.IconSize.LARGE_TOOLBAR);
29+ Gtk.Image start_image = new Gtk.Image.from_icon_name ("media-playback-start-symbolic", Gtk.IconSize.LARGE_TOOLBAR);
30 Gtk.ToolButton slideshow_button = new Gtk.ToolButton (start_image, _("S_lideshow"));
31 slideshow_button.set_tooltip_text (_("Play a slideshow"));
32 slideshow_button.clicked.connect (on_slideshow);
33@@ -841,4 +841,4 @@
34 public override SearchViewFilter get_search_view_filter () {
35 return search_filter;
36 }
37-}
38\ No newline at end of file
39+}
40
41=== modified file 'src/PhotoPage.vala'
42--- src/PhotoPage.vala 2016-02-10 07:45:46 +0000
43+++ src/PhotoPage.vala 2016-08-01 21:27:43 +0000
44@@ -385,7 +385,7 @@
45 public override void repaint () {
46 host_page.repaint ();
47 }
48-
49+
50 public override unowned Gtk.StyleContext get_style_context () {
51 return host_page.canvas.get_style_context ();
52 }
53@@ -839,7 +839,7 @@
54 enhance_button.clicked.disconnect (on_enhance);
55 enhance_button.active = get_photo ().is_enhanced ();
56 enhance_button.clicked.connect (on_enhance);
57- } else
58+ } else
59 set_action_sensitive ("Enhance", false);
60 }
61
62@@ -908,7 +908,7 @@
63 // check if the photo altered while away
64 if (has_photo () && pixbuf_dirty)
65 replace_photo (get_photo ());
66-
67+
68 var app = AppWindow.get_instance () as LibraryWindow;
69 update_sidebar_action (!app.is_metadata_sidebar_visible ());
70 }
71@@ -2119,7 +2119,7 @@
72
73 private void on_tool_cancelled () {
74 deactivate_tool ();
75-
76+
77 update_enhance_action ();
78 restore_zoom_state ();
79 repaint ();
80@@ -2161,7 +2161,7 @@
81 private void on_adjust_toggled () {
82 on_tool_button_toggled (adjust_button, EditingTools.AdjustTool.factory);
83
84- // with adjust tool open turn enhance into normal non toggle button
85+ // with adjust tool open turn enhance into normal non toggle button
86 if (adjust_button.active){
87 enhance_button.clicked.disconnect (on_enhance);
88 enhance_button.active = false;
89@@ -2189,7 +2189,7 @@
90 EditingTools.AdjustTool adjust_tool = current_tool as EditingTools.AdjustTool;
91 if (adjust_tool != null) {
92 adjust_tool.enhance ();
93- // with adjust tool open turn enhance into normal non toggle button
94+ // with adjust tool open turn enhance into normal non toggle button
95 enhance_button.clicked.disconnect (on_enhance);
96 enhance_button.active = false;
97 enhance_button.clicked.connect (on_enhance);
98@@ -2203,7 +2203,7 @@
99 get_command_manager ().undo ();
100 else {
101 UnEnhanceSingleCommand command = new UnEnhanceSingleCommand (get_photo ());
102- get_command_manager ().execute (command);
103+ get_command_manager ().execute (command);
104 }
105 get_photo ().set_enhanced (false);
106 } else {
107@@ -2213,9 +2213,9 @@
108 get_command_manager ().undo ();
109 else {
110 EnhanceSingleCommand command = new EnhanceSingleCommand (get_photo ());
111- get_command_manager ().execute (command);
112- }
113- get_photo ().set_enhanced (true);
114+ get_command_manager ().execute (command);
115+ }
116+ get_photo ().set_enhanced (true);
117 }
118
119 update_enhance_action ();
120@@ -2429,7 +2429,7 @@
121 if (toolbar == null) {
122 base.get_toolbar ();
123
124- Gtk.Image start_image = new Gtk.Image.from_icon_name ("media-playback-start", Gtk.IconSize.LARGE_TOOLBAR);
125+ Gtk.Image start_image = new Gtk.Image.from_icon_name ("media-playback-start-symbolic", Gtk.IconSize.LARGE_TOOLBAR);
126 Gtk.ToolButton slideshow_button = new Gtk.ToolButton (start_image, _("S_lideshow"));
127 slideshow_button.set_tooltip_text (_("Play a slideshow"));
128 slideshow_button.clicked.connect (on_slideshow);
129@@ -2855,7 +2855,7 @@
130 } else {
131 set_action_sensitive ("Flag", false);
132 }
133- }
134+ }
135
136 // Displays a photo from a specific CollectionPage. When the user exits this view,
137 // they will be sent back to the return_page. The optional view paramters is for using
138@@ -3039,7 +3039,7 @@
139 break;
140
141 case "5":
142- on_set_rating (Rating.FIVE);
143+ on_set_rating (Rating.FIVE);
144 break;
145
146 case "0":
147@@ -3341,7 +3341,7 @@
148
149 update_rating_menu_item_sensitivity ();
150 }
151-
152+
153 protected virtual void on_rate_rejected () {
154 on_set_rating (Rating.REJECTED);
155 }
156
157=== modified file 'src/library/LibraryWindow.vala'
158--- src/library/LibraryWindow.vala 2016-01-11 23:54:43 +0000
159+++ src/library/LibraryWindow.vala 2016-08-01 21:27:43 +0000
160@@ -221,6 +221,7 @@
161 // Find button
162 Gtk.ToggleToolButton find_button = new Gtk.ToggleToolButton ();
163 find_button.set_related_action (get_common_action ("CommonDisplaySearchbar"));
164+ find_button.set_icon_name ("edit-find-symbolic");
165 header.pack_end (find_button);
166
167 top_display = new TopDisplay ();
168@@ -383,7 +384,7 @@
169 private Gtk.ToggleActionEntry[] create_common_toggle_actions () {
170 Gtk.ToggleActionEntry[] actions = new Gtk.ToggleActionEntry[0];
171
172- Gtk.ToggleActionEntry searchbar = { "CommonDisplaySearchbar", Gtk.Stock.FIND, TRANSLATABLE,
173+ Gtk.ToggleActionEntry searchbar = { "CommonDisplaySearchbar", "", TRANSLATABLE,
174 "F8", TRANSLATABLE, on_display_searchbar, is_search_toolbar_visible
175 };
176 searchbar.label = _ ("_Search Bar");
177@@ -1016,7 +1017,7 @@
178 // before switching to it
179 spin_event_loop ();
180 }
181-
182+
183 photo_page.display_for_collection (controller, current);
184 switch_to_page (photo_page);
185 }
186
187=== modified file 'src/sidebar/Rating.vala'
188--- src/sidebar/Rating.vala 2016-04-25 21:24:16 +0000
189+++ src/sidebar/Rating.vala 2016-08-01 21:27:43 +0000
190@@ -139,9 +139,9 @@
191 * @param symbolic Whether to use symbolic icons.
192 *
193 */
194- public PhotoRatingWidget (bool centered, int size, bool symbolic = false) {
195+ public PhotoRatingWidget (bool centered, int size, bool symbolic = true) {
196 this.centered = centered;
197- this.renderer = new PhotoRatingRenderer (size, symbolic, get_style_context ());
198+ this.renderer = new PhotoRatingRenderer (size, true, get_style_context ());
199 visible_window = false;
200
201 add_events (Gdk.EventMask.BUTTON_PRESS_MASK

Subscribers

People subscribed via source and target branches

to all changes: