ensure that MidiStreamView calls a color handler for each region

This allows MIDI regions to auto-update during theme editing
This commit is contained in:
Paul Davis 2023-12-09 14:07:58 -07:00
parent 7ee5a3f24d
commit f407d4e3b7
2 changed files with 6 additions and 1 deletions

View File

@ -567,6 +567,10 @@ MidiStreamView::color_handler ()
} else {
canvas_rect->set_fill_color (UIConfiguration::instance().color ("midi bus base"));
}
for (auto & rv : region_views) {
rv->color_handler ();
}
}
void

View File

@ -158,6 +158,8 @@ public:
ARDOUR::CueMarker find_model_cue_marker (ArdourMarker*);
void drop_cue_marker (ArdourMarker*);
virtual void color_handler() { set_colors(); }
protected:
/** Allows derived types to specify their visibility requirements
@ -189,7 +191,6 @@ protected:
virtual void set_sync_mark_color ();
virtual void reset_width_dependent_items (double pixel_width);
virtual void color_handler () {}
virtual void parameter_changed (std::string const&);
void maybe_raise_cue_markers ();