#include "fix_carbon.h"
+#include <glib/gstdio.h>
+
#include <gtkmm/stock.h>
#include <gtkmm/settings.h>
theme_selection_hbox.pack_start (light_button);
set_homogeneous (false);
+#if 0 // disable light/dark theme choice. until the 'light theme gets some attention.
pack_start (theme_selection_hbox, PACK_SHRINK);
+#endif
pack_start (reset_button, PACK_SHRINK);
#ifndef __APPLE__
pack_start (all_dialogs, PACK_SHRINK);
void
ThemeManager::reset_canvas_colors()
{
+ string cfile;
+ string basename;
+
+ basename = "my-";
+ basename += ARDOUR_UI::config()->get_color_file();
+ basename += ".colors";
+
+ if (find_file (ardour_config_search_path(), basename, cfile)) {
+ string backup = cfile + string (X_(".old"));
+ g_rename (cfile.c_str(), backup.c_str());
+ /* don't really care if it fails */
+ }
+
ARDOUR_UI::config()->load_defaults();
ARDOUR_UI::config()->save_state ();
set_ui_to_state();