From 12c3eb6e01236ef5de835e245684b279d16587f1 Mon Sep 17 00:00:00 2001 From: Hombre Date: Mon, 11 Apr 2016 23:06:19 +0200 Subject: [PATCH] Solving issue #3238: "Fall back to RawTherapee.css when error loading theme" --- rtgui/main.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rtgui/main.cc b/rtgui/main.cc index 5dd233f23..5b7d9055e 100644 --- a/rtgui/main.cc +++ b/rtgui/main.cc @@ -310,6 +310,10 @@ int main(int argc, char **argv) Gtk::Settings::get_for_screen(screen)->property_gtk_application_prefer_dark_theme() = true; Glib::ustring filename = Glib::build_filename(argv0, "themes", options.theme + ".css"); + if (!Glib::file_test(filename, Glib::FILE_TEST_EXISTS)) { + options.theme = "RawTherapee"; + filename = Glib::build_filename(argv0, "themes", options.theme + ".css"); + } cssRT = Gtk::CssProvider::create(); try {