13
0

increase transparency of velocity ghost regions

This commit is contained in:
Paul Davis 2023-06-25 13:09:39 -06:00
parent b3de53eb95
commit 6ef84ca376

View File

@ -58,6 +58,7 @@ VelocityGhostRegion::VelocityGhostRegion (MidiRegionView& mrv, TimeAxisView& tv,
, drag_did_change (false)
{
base_rect->Event.connect (sigc::mem_fun (*this, &VelocityGhostRegion::base_event));
base_rect->set_fill_color (UIConfiguration::instance().color_mod ("ghost track base", "ghost track midi fill"));
base_rect->set_outline_color (UIConfiguration::instance().color ("automation track outline"));
base_rect->set_outline (true);
base_rect->set_outline_what (ArdourCanvas::Rectangle::What (ArdourCanvas::Rectangle::LEFT|ArdourCanvas::Rectangle::RIGHT));
@ -206,7 +207,7 @@ VelocityGhostRegion::remove_note (NoteBase*)
void
VelocityGhostRegion::set_colors ()
{
base_rect->set_fill_color (UIConfiguration::instance().color ("ghost track base"));
base_rect->set_fill_color (UIConfiguration::instance().color_mod ("ghost track base", "ghost track midi fill"));
for (auto & gev : events) {
gev.second->item->set_fill_color (gev.second->event->base_color());