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/control_point.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/control_point.cc')
-rw-r--r-- | gtk2_ardour/control_point.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/control_point.cc b/gtk2_ardour/control_point.cc index ea50f8bab8..6b90bdfea4 100644 --- a/gtk2_ardour/control_point.cc +++ b/gtk2_ardour/control_point.cc @@ -45,8 +45,8 @@ ControlPoint::ControlPoint (AutomationLine& al) _item = new ArdourCanvas::Rectangle (&_line.canvas_group()); _item->set_fill (true); - _item->set_fill_color (ARDOUR_UI::config()->get_ControlPointFill()); - _item->set_outline_color (ARDOUR_UI::config()->get_ControlPointOutline()); + _item->set_fill_color (ARDOUR_UI::config()->color ("ControlPointFill")); + _item->set_outline_color (ARDOUR_UI::config()->color ("ControlPointOutline")); _item->set_data ("control_point", this); _item->Event.connect (sigc::mem_fun (this, &ControlPoint::event_handler)); @@ -70,7 +70,7 @@ ControlPoint::ControlPoint (const ControlPoint& other, bool /*dummy_arg_to_force _item = new ArdourCanvas::Rectangle (&_line.canvas_group()); _item->set_fill (true); - _item->set_outline_color (ARDOUR_UI::config()->get_ControlPointOutline()); + _item->set_outline_color (ARDOUR_UI::config()->color ("ControlPointOutline")); /* NOTE: no event handling in copied ControlPoints */ @@ -122,13 +122,13 @@ ControlPoint::set_color () uint32_t color = 0; if (_selected) { - color = ARDOUR_UI::config()->get_ControlPointSelected(); + color = ARDOUR_UI::config()->color ("ControlPointSelected"); } else { - color = ARDOUR_UI::config()->get_ControlPointOutline(); + color = ARDOUR_UI::config()->color ("ControlPointOutline"); } _item->set_outline_color (color); - _item->set_fill_color (ARDOUR_UI::config()->get_ControlPointFill()); + _item->set_fill_color (ARDOUR_UI::config()->color ("ControlPointFill")); } void |