Rweak selection+color semantics

This commit is contained in:
Robin Gareus 2019-09-26 19:35:31 +02:00
parent 973e9ad132
commit 065c09e418
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 4 additions and 2 deletions

View File

@ -991,7 +991,9 @@ TimeAxisView::get_selection_rect (uint32_t id)
rect->rect = new ArdourCanvas::Rectangle (selection_group);
CANVAS_DEBUG_NAME (rect->rect, "selection rect");
rect->rect->set_outline (false);
rect->rect->set_outline (true);
rect->rect->set_outline_width (1.0);
rect->rect->set_outline_color (UIConfiguration::instance().color ("selection"));
rect->rect->set_fill_color (UIConfiguration::instance().color_mod ("selection rect", "selection rect"));
rect->start_trim = new ArdourCanvas::Rectangle (selection_group);

View File

@ -683,7 +683,7 @@ TimeAxisViewItem::get_fill_color () const
const std::string mod_name = (_dragging ? "dragging region" : fill_color_name);
if (_selected) {
return UIConfiguration::instance().color_mod ("selected region base", mod_name);
return UIConfiguration::instance().color ("selected region base");
} else if (_recregion) {
return UIConfiguration::instance().color ("recording rect");
} else if ((!UIConfiguration::instance().get_show_name_highlight() || high_enough_for_name) &&