diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-30 12:19:09 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-31 15:30:46 -0400 |
commit | 6ec731c5faccb2295a1599b2453866c28d7af61e (patch) | |
tree | 51089d5eeae962523e346725c523968dc4c11747 /gtk2_ardour/theme_manager.h | |
parent | ae314207b1b04ba231bd05c3e1bedf6cb9c30b3f (diff) |
rework of color theme file management
Use program-name + version when saving user color files (and search for them)
Preset XML-defined theme name, but use filename in config files (could be wrong).
Diffstat (limited to 'gtk2_ardour/theme_manager.h')
-rw-r--r-- | gtk2_ardour/theme_manager.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gtk2_ardour/theme_manager.h b/gtk2_ardour/theme_manager.h index 366fc8aad8..acfa2f9219 100644 --- a/gtk2_ardour/theme_manager.h +++ b/gtk2_ardour/theme_manager.h @@ -67,16 +67,19 @@ class ThemeManager : public Gtk::VBox private: Gtk::Notebook notebook; - struct BasicColorDisplayModelColumns : public Gtk::TreeModel::ColumnRecord { - BasicColorDisplayModelColumns() { + struct ColorThemeModelColumns : public Gtk::TreeModel::ColumnRecord { + ColorThemeModelColumns() { add (name); - add (gdkcolor); + add (path); } Gtk::TreeModelColumn<std::string> name; - Gtk::TreeModelColumn<Gdk::Color> gdkcolor; + Gtk::TreeModelColumn<std::string> path; }; + ColorThemeModelColumns color_theme_columns; + Glib::RefPtr<Gtk::TreeStore> theme_list; + Gtk::ColorSelectionDialog color_dialog; sigc::connection color_dialog_connection; @@ -99,7 +102,7 @@ class ThemeManager : public Gtk::VBox Gtk::Label icon_set_label; Gtk::ComboBoxText icon_set_dropdown; Gtk::Label color_theme_label; - Gtk::ComboBoxText color_theme_dropdown; + Gtk::ComboBox color_theme_dropdown; /* handls response from color dialog when it is used to edit a derived color. |