summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ui_config.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-05-29 11:46:10 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-05-31 15:30:45 -0400
commit4c60a925c02b34f02d757f459e1e5574c29d5169 (patch)
treea02b9eee6db51deb162593a7199b3d2d57c41d4d /gtk2_ardour/ui_config.cc
parente4cfa1d95553bc9911dc206d8d2e3ff2d40adba2 (diff)
the return of the theme selector, plus 3 new themes from cooltehno
Diffstat (limited to 'gtk2_ardour/ui_config.cc')
-rw-r--r--gtk2_ardour/ui_config.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc
index d456a95794..317b5e4688 100644
--- a/gtk2_ardour/ui_config.cc
+++ b/gtk2_ardour/ui_config.cc
@@ -50,6 +50,7 @@
#include "gtkmm2ext/gtk_ui.h"
#include "ardour/filesystem_paths.h"
+#include "ardour/search_paths.h"
#include "ardour/utils.h"
#include "ui_config.h"
@@ -65,6 +66,7 @@ static const char* ui_config_file_name = "ui_config";
static const char* default_ui_config_file_name = "default_ui_config";
static const double hue_width = 18.0;
+std::string UIConfiguration::color_file_suffix = X_(".colors");
UIConfiguration&
UIConfiguration::instance ()
@@ -265,21 +267,23 @@ UIConfiguration::load_color_theme (bool allow_own)
*/
PBD::Unwinder<uint32_t> uw (block_save, block_save + 1);
+ std::cerr << "\n\n\nLoading COLOR " << color_file.get() << std::endl;
+
if (allow_own) {
basename = "my-";
basename += color_file.get();
- basename += ".colors";
+ basename += color_file_suffix;
- if (find_file (ardour_config_search_path(), basename, cfile)) {
+ if (find_file (theme_search_path(), basename, cfile)) {
found = true;
}
}
if (!found) {
basename = color_file.get();
- basename += ".colors";
+ basename += color_file_suffix;
- if (find_file (ardour_config_search_path(), basename, cfile)) {
+ if (find_file (theme_search_path(), basename, cfile)) {
found = true;
}
}
@@ -346,7 +350,7 @@ UIConfiguration::store_color_theme ()
root->add_child_nocopy (*parent);
XMLTree tree;
- std::string colorfile = Glib::build_filename (user_config_directory(), (string ("my-") + color_file.get() + ".colors"));
+ std::string colorfile = Glib::build_filename (user_config_directory(), (string ("my-") + color_file.get() + color_file_suffix));
tree.set_root (root);
@@ -749,5 +753,3 @@ UIConfiguration::load_rc_file (bool themechange, bool allow_own)
Gtkmm2ext::UI::instance()->load_rcfile (rc_file_path, themechange);
}
-
-