diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-12-14 12:27:07 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-12-14 12:27:07 -0500 |
commit | 48a7a11974fb378483da9c4cce6e2af4d7060c5d (patch) | |
tree | 4c14576cdee385465bfbc798a5da4d94fe079219 /gtk2_ardour/time_axis_view.cc | |
parent | 0fa5643d20fd57ce7f878e3c5e51b768ec6b98a3 (diff) |
initial pass to replace all UIConfiguration::get_XXXXXX() calls with UIConfiguration::color(name).
IMPORTANT: names have not been downcased and spaced yet, so many colors are not found
Diffstat (limited to 'gtk2_ardour/time_axis_view.cc')
-rw-r--r-- | gtk2_ardour/time_axis_view.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc index dc4b491c4a..7ee57b3bb7 100644 --- a/gtk2_ardour/time_axis_view.cc +++ b/gtk2_ardour/time_axis_view.cc @@ -1025,7 +1025,7 @@ TimeAxisView::get_selection_rect (uint32_t id) rect->rect = new ArdourCanvas::TimeRectangle (selection_group); CANVAS_DEBUG_NAME (rect->rect, "selection rect"); rect->rect->set_outline (false); - rect->rect->set_fill_color (ARDOUR_UI::config()->get_SelectionRect()); + rect->rect->set_fill_color (ARDOUR_UI::config()->color ("SelectionRect")); rect->start_trim = new ArdourCanvas::Rectangle (selection_group); CANVAS_DEBUG_NAME (rect->start_trim, "selection rect start trim"); @@ -1190,26 +1190,26 @@ TimeAxisView::color_handler () for (list<SelectionRect*>::iterator i = used_selection_rects.begin(); i != used_selection_rects.end(); ++i) { - (*i)->rect->set_fill_color (ARDOUR_UI::config()->get_SelectionRect()); - (*i)->rect->set_outline_color (ARDOUR_UI::config()->get_Selection()); + (*i)->rect->set_fill_color (ARDOUR_UI::config()->color ("SelectionRect")); + (*i)->rect->set_outline_color (ARDOUR_UI::config()->color ("Selection")); - (*i)->start_trim->set_fill_color (ARDOUR_UI::config()->get_Selection()); - (*i)->start_trim->set_outline_color (ARDOUR_UI::config()->get_Selection()); + (*i)->start_trim->set_fill_color (ARDOUR_UI::config()->color ("Selection")); + (*i)->start_trim->set_outline_color (ARDOUR_UI::config()->color ("Selection")); - (*i)->end_trim->set_fill_color (ARDOUR_UI::config()->get_Selection()); - (*i)->end_trim->set_outline_color (ARDOUR_UI::config()->get_Selection()); + (*i)->end_trim->set_fill_color (ARDOUR_UI::config()->color ("Selection")); + (*i)->end_trim->set_outline_color (ARDOUR_UI::config()->color ("Selection")); } for (list<SelectionRect*>::iterator i = free_selection_rects.begin(); i != free_selection_rects.end(); ++i) { - (*i)->rect->set_fill_color (ARDOUR_UI::config()->get_SelectionRect()); - (*i)->rect->set_outline_color (ARDOUR_UI::config()->get_Selection()); + (*i)->rect->set_fill_color (ARDOUR_UI::config()->color ("SelectionRect")); + (*i)->rect->set_outline_color (ARDOUR_UI::config()->color ("Selection")); - (*i)->start_trim->set_fill_color (ARDOUR_UI::config()->get_Selection()); - (*i)->start_trim->set_outline_color (ARDOUR_UI::config()->get_Selection()); + (*i)->start_trim->set_fill_color (ARDOUR_UI::config()->color ("Selection")); + (*i)->start_trim->set_outline_color (ARDOUR_UI::config()->color ("Selection")); - (*i)->end_trim->set_fill_color (ARDOUR_UI::config()->get_Selection()); - (*i)->end_trim->set_outline_color (ARDOUR_UI::config()->get_Selection()); + (*i)->end_trim->set_fill_color (ARDOUR_UI::config()->color ("Selection")); + (*i)->end_trim->set_outline_color (ARDOUR_UI::config()->color ("Selection")); } } |