fix incorrect item name for color
[ardour.git] / gtk2_ardour / midi_region_view.cc
index 2f5d69ffe97e0fa4f3e1d1d22be6452d321ef7e1..0d44a83e5e92d905ea885c4dd97b2ff64ac7eb38 100644 (file)
 
 #include <sigc++/signal.h>
 
+#include "midi++/midnam_patch.h"
+
 #include "pbd/memento_command.h"
 #include "pbd/stateful_diff_command.h"
 
 #include "ardour/midi_model.h"
-#include "ardour/midi_patch_manager.h"
 #include "ardour/midi_region.h"
 #include "ardour/midi_source.h"
 #include "ardour/midi_track.h"
@@ -2620,7 +2621,7 @@ MidiRegionView::begin_resizing (bool /*at_front*/)
 
                        // calculate the colors: get the color settings
                        uint32_t fill_color = UINT_RGBA_CHANGE_A(
-                               ARDOUR_UI::config()->get_MidiNoteSelected(),
+                               ARDOUR_UI::config()->color ("midi note selected"),
                                128);
 
                        // make the resize preview notes more transparent and bright
@@ -2633,7 +2634,7 @@ MidiRegionView::begin_resizing (bool /*at_front*/)
                                0.85));
 
                        resize_rect->set_outline_color (NoteBase::calculate_outline (
-                                                               ARDOUR_UI::config()->get_MidiNoteSelected()));
+                                                               ARDOUR_UI::config()->color ("midi note selected")));
 
                        resize_data->resize_rect = resize_rect;
                        _resize_data.push_back(resize_data);
@@ -3280,9 +3281,9 @@ MidiRegionView::set_frame_color()
        }
 
        if (_selected) {
-               f = ARDOUR_UI::config()->get_SelectedFrameBase();
+               f = ARDOUR_UI::config()->color ("selected region base");
        } else if (high_enough_for_name) {
-               f= ARDOUR_UI::config()->get_MidiFrameBase();
+               f= ARDOUR_UI::config()->color ("midi frame base");
        } else {
                f = fill_color;
        }