summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/App.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/gui/App.cpp')
-rw-r--r--src/libs/gui/App.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/libs/gui/App.cpp b/src/libs/gui/App.cpp
index dc3db30d..8c7c365c 100644
--- a/src/libs/gui/App.cpp
+++ b/src/libs/gui/App.cpp
@@ -110,10 +110,11 @@ App::run(int argc, char** argv,
if (!_instance)
_instance = new App(world);
- /* Load settings */
+ // Load configuration settings
_instance->configuration()->load_settings();
_instance->configuration()->apply_settings();
+ // Set default window icon
const Glib::ustring icon_path = PKGDATADIR "/ingen.svg";
try {
if (Glib::file_test(icon_path, Glib::FILE_TEST_EXISTS))
@@ -122,6 +123,24 @@ App::run(int argc, char** argv,
cerr << "Unable to load window icon " << icon_path << ": " << err.what() << endl;
}
+ // Set style for embedded node GUIs
+ const string rc_style =
+ "style \"ingen_embedded_node_gui_style\" {"
+ " bg[NORMAL] = \"#212222\""
+ " bg[ACTIVE] = \"#505050\""
+ " bg[PRELIGHT] = \"#525454\""
+ " bg[SELECTED] = \"#99A0A0\""
+ " bg[INSENSITIVE] = \"#F03030\""
+ " fg[NORMAL] = \"#FFFFFF\""
+ " fg[ACTIVE] = \"#FFFFFF\""
+ " fg[PRELIGHT] = \"#FFFFFF\""
+ " fg[SELECTED] = \"#FFFFFF\""
+ " fg[INSENSITIVE] = \"#FFFFFF\""
+ "}\n"
+ "widget \"*ingen_embedded_node_gui_container*\" style \"ingen_embedded_node_gui_style\"\n";
+
+ Gtk::RC::parse_string(rc_style);
+
App::instance().connect_window()->start(engine, interface);
main.run();