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
=== modified file 'src/Application.vala'
--- src/Application.vala 2016-06-27 10:37:18 +0000
+++ src/Application.vala 2016-08-01 21:27:43 +0000
@@ -46,6 +46,7 @@
46 about_artists = {};46 about_artists = {};
47 about_translators = _("translator-credits");47 about_translators = _("translator-credits");
48 about_license_type = Gtk.License.LGPL_2_1;48 about_license_type = Gtk.License.LGPL_2_1;
49 Gtk.Settings.get_default().set("gtk-application-prefer-dark-theme", true);
49 }50 }
5051
51 private Application (bool is_direct) {52 private Application (bool is_direct) {
@@ -60,7 +61,6 @@
60 app_icon = "multimedia-photo-viewer";61 app_icon = "multimedia-photo-viewer";
61 app_launcher = "pantheon-photos-viewer.desktop";62 app_launcher = "pantheon-photos-viewer.desktop";
62 program_name = _("Photo Viewer");63 program_name = _("Photo Viewer");
63 Gtk.Settings.get_default().set("gtk-application-prefer-dark-theme", true);
64 flags = GLib.ApplicationFlags.HANDLES_OPEN | GLib.ApplicationFlags.NON_UNIQUE;64 flags = GLib.ApplicationFlags.HANDLES_OPEN | GLib.ApplicationFlags.NON_UNIQUE;
65 } else {65 } else {
66 // we've been invoked in library mode; set up for uniqueness and handling66 // we've been invoked in library mode; set up for uniqueness and handling
6767
=== modified file 'src/CollectionPage.vala'
--- src/CollectionPage.vala 2014-09-29 15:08:44 +0000
+++ src/CollectionPage.vala 2016-08-01 21:27:43 +0000
@@ -69,7 +69,7 @@
69 connect_slider (zoom_slider_assembly);69 connect_slider (zoom_slider_assembly);
70 get_toolbar ().insert (zoom_slider_assembly, -1);70 get_toolbar ().insert (zoom_slider_assembly, -1);
7171
72 Gtk.Image start_image = new Gtk.Image.from_icon_name ("media-playback-start", Gtk.IconSize.LARGE_TOOLBAR);72 Gtk.Image start_image = new Gtk.Image.from_icon_name ("media-playback-start-symbolic", Gtk.IconSize.LARGE_TOOLBAR);
73 Gtk.ToolButton slideshow_button = new Gtk.ToolButton (start_image, _("S_lideshow"));73 Gtk.ToolButton slideshow_button = new Gtk.ToolButton (start_image, _("S_lideshow"));
74 slideshow_button.set_tooltip_text (_("Play a slideshow"));74 slideshow_button.set_tooltip_text (_("Play a slideshow"));
75 slideshow_button.clicked.connect (on_slideshow);75 slideshow_button.clicked.connect (on_slideshow);
@@ -841,4 +841,4 @@
841 public override SearchViewFilter get_search_view_filter () {841 public override SearchViewFilter get_search_view_filter () {
842 return search_filter;842 return search_filter;
843 }843 }
844}
845\ No newline at end of file844\ No newline at end of file
845}
846846
=== modified file 'src/PhotoPage.vala'
--- src/PhotoPage.vala 2016-02-10 07:45:46 +0000
+++ src/PhotoPage.vala 2016-08-01 21:27:43 +0000
@@ -385,7 +385,7 @@
385 public override void repaint () {385 public override void repaint () {
386 host_page.repaint ();386 host_page.repaint ();
387 }387 }
388 388
389 public override unowned Gtk.StyleContext get_style_context () {389 public override unowned Gtk.StyleContext get_style_context () {
390 return host_page.canvas.get_style_context ();390 return host_page.canvas.get_style_context ();
391 }391 }
@@ -839,7 +839,7 @@
839 enhance_button.clicked.disconnect (on_enhance);839 enhance_button.clicked.disconnect (on_enhance);
840 enhance_button.active = get_photo ().is_enhanced ();840 enhance_button.active = get_photo ().is_enhanced ();
841 enhance_button.clicked.connect (on_enhance);841 enhance_button.clicked.connect (on_enhance);
842 } else 842 } else
843 set_action_sensitive ("Enhance", false);843 set_action_sensitive ("Enhance", false);
844 }844 }
845845
@@ -908,7 +908,7 @@
908 // check if the photo altered while away908 // check if the photo altered while away
909 if (has_photo () && pixbuf_dirty)909 if (has_photo () && pixbuf_dirty)
910 replace_photo (get_photo ());910 replace_photo (get_photo ());
911 911
912 var app = AppWindow.get_instance () as LibraryWindow;912 var app = AppWindow.get_instance () as LibraryWindow;
913 update_sidebar_action (!app.is_metadata_sidebar_visible ());913 update_sidebar_action (!app.is_metadata_sidebar_visible ());
914 }914 }
@@ -2119,7 +2119,7 @@
21192119
2120 private void on_tool_cancelled () {2120 private void on_tool_cancelled () {
2121 deactivate_tool ();2121 deactivate_tool ();
2122 2122
2123 update_enhance_action ();2123 update_enhance_action ();
2124 restore_zoom_state ();2124 restore_zoom_state ();
2125 repaint ();2125 repaint ();
@@ -2161,7 +2161,7 @@
2161 private void on_adjust_toggled () {2161 private void on_adjust_toggled () {
2162 on_tool_button_toggled (adjust_button, EditingTools.AdjustTool.factory);2162 on_tool_button_toggled (adjust_button, EditingTools.AdjustTool.factory);
21632163
2164 // with adjust tool open turn enhance into normal non toggle button 2164 // with adjust tool open turn enhance into normal non toggle button
2165 if (adjust_button.active){2165 if (adjust_button.active){
2166 enhance_button.clicked.disconnect (on_enhance);2166 enhance_button.clicked.disconnect (on_enhance);
2167 enhance_button.active = false;2167 enhance_button.active = false;
@@ -2189,7 +2189,7 @@
2189 EditingTools.AdjustTool adjust_tool = current_tool as EditingTools.AdjustTool;2189 EditingTools.AdjustTool adjust_tool = current_tool as EditingTools.AdjustTool;
2190 if (adjust_tool != null) {2190 if (adjust_tool != null) {
2191 adjust_tool.enhance ();2191 adjust_tool.enhance ();
2192 // with adjust tool open turn enhance into normal non toggle button 2192 // with adjust tool open turn enhance into normal non toggle button
2193 enhance_button.clicked.disconnect (on_enhance);2193 enhance_button.clicked.disconnect (on_enhance);
2194 enhance_button.active = false;2194 enhance_button.active = false;
2195 enhance_button.clicked.connect (on_enhance);2195 enhance_button.clicked.connect (on_enhance);
@@ -2203,7 +2203,7 @@
2203 get_command_manager ().undo ();2203 get_command_manager ().undo ();
2204 else {2204 else {
2205 UnEnhanceSingleCommand command = new UnEnhanceSingleCommand (get_photo ());2205 UnEnhanceSingleCommand command = new UnEnhanceSingleCommand (get_photo ());
2206 get_command_manager ().execute (command); 2206 get_command_manager ().execute (command);
2207 }2207 }
2208 get_photo ().set_enhanced (false);2208 get_photo ().set_enhanced (false);
2209 } else {2209 } else {
@@ -2213,9 +2213,9 @@
2213 get_command_manager ().undo ();2213 get_command_manager ().undo ();
2214 else {2214 else {
2215 EnhanceSingleCommand command = new EnhanceSingleCommand (get_photo ());2215 EnhanceSingleCommand command = new EnhanceSingleCommand (get_photo ());
2216 get_command_manager ().execute (command); 2216 get_command_manager ().execute (command);
2217 } 2217 }
2218 get_photo ().set_enhanced (true); 2218 get_photo ().set_enhanced (true);
2219 }2219 }
22202220
2221 update_enhance_action ();2221 update_enhance_action ();
@@ -2429,7 +2429,7 @@
2429 if (toolbar == null) {2429 if (toolbar == null) {
2430 base.get_toolbar ();2430 base.get_toolbar ();
24312431
2432 Gtk.Image start_image = new Gtk.Image.from_icon_name ("media-playback-start", Gtk.IconSize.LARGE_TOOLBAR);2432 Gtk.Image start_image = new Gtk.Image.from_icon_name ("media-playback-start-symbolic", Gtk.IconSize.LARGE_TOOLBAR);
2433 Gtk.ToolButton slideshow_button = new Gtk.ToolButton (start_image, _("S_lideshow"));2433 Gtk.ToolButton slideshow_button = new Gtk.ToolButton (start_image, _("S_lideshow"));
2434 slideshow_button.set_tooltip_text (_("Play a slideshow"));2434 slideshow_button.set_tooltip_text (_("Play a slideshow"));
2435 slideshow_button.clicked.connect (on_slideshow);2435 slideshow_button.clicked.connect (on_slideshow);
@@ -2855,7 +2855,7 @@
2855 } else {2855 } else {
2856 set_action_sensitive ("Flag", false);2856 set_action_sensitive ("Flag", false);
2857 }2857 }
2858 } 2858 }
28592859
2860 // Displays a photo from a specific CollectionPage. When the user exits this view,2860 // Displays a photo from a specific CollectionPage. When the user exits this view,
2861 // they will be sent back to the return_page. The optional view paramters is for using2861 // they will be sent back to the return_page. The optional view paramters is for using
@@ -3039,7 +3039,7 @@
3039 break;3039 break;
30403040
3041 case "5":3041 case "5":
3042 on_set_rating (Rating.FIVE); 3042 on_set_rating (Rating.FIVE);
3043 break;3043 break;
30443044
3045 case "0":3045 case "0":
@@ -3341,7 +3341,7 @@
33413341
3342 update_rating_menu_item_sensitivity ();3342 update_rating_menu_item_sensitivity ();
3343 }3343 }
3344 3344
3345 protected virtual void on_rate_rejected () {3345 protected virtual void on_rate_rejected () {
3346 on_set_rating (Rating.REJECTED);3346 on_set_rating (Rating.REJECTED);
3347 }3347 }
33483348
=== modified file 'src/library/LibraryWindow.vala'
--- src/library/LibraryWindow.vala 2016-01-11 23:54:43 +0000
+++ src/library/LibraryWindow.vala 2016-08-01 21:27:43 +0000
@@ -221,6 +221,7 @@
221 // Find button221 // Find button
222 Gtk.ToggleToolButton find_button = new Gtk.ToggleToolButton ();222 Gtk.ToggleToolButton find_button = new Gtk.ToggleToolButton ();
223 find_button.set_related_action (get_common_action ("CommonDisplaySearchbar"));223 find_button.set_related_action (get_common_action ("CommonDisplaySearchbar"));
224 find_button.set_icon_name ("edit-find-symbolic");
224 header.pack_end (find_button);225 header.pack_end (find_button);
225226
226 top_display = new TopDisplay ();227 top_display = new TopDisplay ();
@@ -383,7 +384,7 @@
383 private Gtk.ToggleActionEntry[] create_common_toggle_actions () {384 private Gtk.ToggleActionEntry[] create_common_toggle_actions () {
384 Gtk.ToggleActionEntry[] actions = new Gtk.ToggleActionEntry[0];385 Gtk.ToggleActionEntry[] actions = new Gtk.ToggleActionEntry[0];
385386
386 Gtk.ToggleActionEntry searchbar = { "CommonDisplaySearchbar", Gtk.Stock.FIND, TRANSLATABLE,387 Gtk.ToggleActionEntry searchbar = { "CommonDisplaySearchbar", "", TRANSLATABLE,
387 "F8", TRANSLATABLE, on_display_searchbar, is_search_toolbar_visible388 "F8", TRANSLATABLE, on_display_searchbar, is_search_toolbar_visible
388 };389 };
389 searchbar.label = _ ("_Search Bar");390 searchbar.label = _ ("_Search Bar");
@@ -1016,7 +1017,7 @@
1016 // before switching to it1017 // before switching to it
1017 spin_event_loop ();1018 spin_event_loop ();
1018 }1019 }
1019 1020
1020 photo_page.display_for_collection (controller, current);1021 photo_page.display_for_collection (controller, current);
1021 switch_to_page (photo_page);1022 switch_to_page (photo_page);
1022 }1023 }
10231024
=== modified file 'src/sidebar/Rating.vala'
--- src/sidebar/Rating.vala 2016-04-25 21:24:16 +0000
+++ src/sidebar/Rating.vala 2016-08-01 21:27:43 +0000
@@ -139,9 +139,9 @@
139 * @param symbolic Whether to use symbolic icons.139 * @param symbolic Whether to use symbolic icons.
140 *140 *
141 */141 */
142 public PhotoRatingWidget (bool centered, int size, bool symbolic = false) {142 public PhotoRatingWidget (bool centered, int size, bool symbolic = true) {
143 this.centered = centered;143 this.centered = centered;
144 this.renderer = new PhotoRatingRenderer (size, symbolic, get_style_context ());144 this.renderer = new PhotoRatingRenderer (size, true, get_style_context ());
145 visible_window = false;145 visible_window = false;
146146
147 add_events (Gdk.EventMask.BUTTON_PRESS_MASK147 add_events (Gdk.EventMask.BUTTON_PRESS_MASK

Subscribers

People subscribed via source and target branches

to all changes: