/*
- Copyright (C) 2000-2007 Paul Davis
+ Copyright (C) 2000-2007 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <gtkmm/scrolledwindow.h>
#include <gtkmm/colorselection.h>
#include <gtkmm/radiobutton.h>
+#include <gtkmm/button.h>
#include <gtkmm/rc.h>
-#include <ardour/configuration.h>
#include "ardour_dialog.h"
-
+#include "ui_config.h"
class ThemeManager : public ArdourDialog
{
~ThemeManager();
int save (std::string path);
- void load_rc (int which);
void setup_theme ();
+ void reset_canvas_colors();
+
+ void on_dark_theme_button_toggled ();
+ void on_light_theme_button_toggled ();
private:
struct ColorDisplayModelColumns : public Gtk::TreeModel::ColumnRecord {
- ColorDisplayModelColumns() {
+ ColorDisplayModelColumns() {
add (name);
add (color);
add (gdkcolor);
add (pVar);
add (rgba);
}
-
- Gtk::TreeModelColumn<Glib::ustring> name;
- Gtk::TreeModelColumn<Glib::ustring> color;
+
+ Gtk::TreeModelColumn<std::string> name;
+ Gtk::TreeModelColumn<std::string> color;
Gtk::TreeModelColumn<Gdk::Color> gdkcolor;
- Gtk::TreeModelColumn<ARDOUR::ConfigVariable<uint32_t> *> pVar;
+ Gtk::TreeModelColumn<UIConfigVariable<uint32_t> *> pVar;
Gtk::TreeModelColumn<uint32_t> rgba;
};
Gtk::HBox theme_selection_hbox;
Gtk::RadioButton dark_button;
Gtk::RadioButton light_button;
+ Gtk::Button reset_button;
bool button_press_event (GdkEventButton*);
};
-
#endif /* __ardour_gtk_color_manager_h__ */