From edc189c98fe4f3f4bbadc273dcaca0eb6b31704c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 Aug 2014 16:40:38 +0000 Subject: Use complete Gtk style from file for embedded UIs. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5456 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/App.cpp | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'src/gui/App.cpp') diff --git a/src/gui/App.cpp b/src/gui/App.cpp index 22a5a95c..e6fe35dc 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -100,6 +100,10 @@ App::~App() SPtr App::create(Ingen::World* world) { + // Add RC file for embedded GUI Gtk style + const std::string rc_path = Ingen::data_file_path("ingen_style.rc"); + Gtk::RC::add_default_file(rc_path); + _main = Gtk::Main::instance(); if (!_main) { Glib::set_application_name("Ingen"); @@ -118,24 +122,6 @@ App::create(Ingen::World* world) app->_about_dialog->property_logo_icon_name() = "ingen"; gtk_window_set_default_icon_name("ingen"); - // Set style for embedded block GUIs - const string rc_style = - "style \"ingen_embedded_node_gui_style\" {\n" - "bg[NORMAL] = \"#1E2224\"\n" - "bg[ACTIVE] = \"#505050\"\n" - "bg[PRELIGHT] = \"#525454\"\n" - "bg[SELECTED] = \"#99A0A0\"\n" - "bg[INSENSITIVE] = \"#F03030\"\n" - "fg[NORMAL] = \"#FFFFFF\"\n" - "fg[ACTIVE] = \"#FFFFFF\"\n" - "fg[PRELIGHT] = \"#FFFFFF\"\n" - "fg[SELECTED] = \"#FFFFFF\"\n" - "fg[INSENSITIVE] = \"#FFFFFF\"\n" - "}\n" - "widget \"*ingen_embedded_node_gui_container*\" style \"ingen_embedded_node_gui_style\"\n"; - - Gtk::RC::parse_string(rc_style); - return SPtr(app); } -- cgit v1.2.1