Merge lp:~elementary-apps/pantheon-photos/dark-theme-file-viewer into lp:~pantheon-photos/pantheon-photos/trunk

Proposed by Sergey "Shnatsel" Davidoff
Status: Merged
Approved by: Danielle Foré
Approved revision: 2706
Merged at revision: 2708
Proposed branch: lp:~elementary-apps/pantheon-photos/dark-theme-file-viewer
Merge into: lp:~pantheon-photos/pantheon-photos/trunk
Diff against target: 11 lines (+1/-0)
1 file modified
src/Application.vala (+1/-0)
To merge this branch: bzr merge lp:~elementary-apps/pantheon-photos/dark-theme-file-viewer
Reviewer Review Type Date Requested Status
elementary UX Pending
Photos Devs Pending
Review via email: mp+245055@code.launchpad.net

Commit message

Use dark theme in the Direct mode, also known as Photo Viewer, that's invoked from file manager and all external applications.

Description of the change

Use dark theme in the Direct mode, also known as Photo Viewer, that's invoked from file manager and all external applications.
Does not affect the Library mode.

Before:
http://i.imgur.com/gkgaqph.png
http://i.imgur.com/PtWncTJ.png

After:
http://i.imgur.com/TzFAeKK.png
http://i.imgur.com/hWwxfWR.png

The headerbar is a little too bright, but that's a theme issue, not related to Shotwell's code. It's the same in Pantheon Files with forced dark theme: http://i.imgur.com/yGTh8XK.png

To post a comment you must log in.

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 2014-09-06 00:21:04 +0000
3+++ src/Application.vala 2014-12-18 00:09:36 +0000
4@@ -60,6 +60,7 @@
5 app_icon = "multimedia-photo-viewer";
6 app_launcher = "shotwell-viewer.desktop";
7 program_name = _("Photo Viewer");
8+ Gtk.Settings.get_default().set("gtk-application-prefer-dark-theme", true);
9 flags = GLib.ApplicationFlags.HANDLES_OPEN | GLib.ApplicationFlags.NON_UNIQUE;
10 } else {
11 // we've been invoked in library mode; set up for uniqueness and handling

Subscribers

People subscribed via source and target branches