summaryrefslogtreecommitdiff
path: root/gtk2_ardour/marker.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2019-12-09 07:49:16 -0600
committerBen Loftis <ben@harrisonconsoles.com>2019-12-09 07:49:30 -0600
commit319b029579aa7a7b72b70bdd663e0025fae4471c (patch)
treede19e0d6d7f06fe62f7f3657a4a410911a3d0f14 /gtk2_ardour/marker.cc
parentcf7bfae926d1a3f48b4b2e9a3a9d72974f031def (diff)
When a marker is selected, change the marker color in addition to the line color.
Diffstat (limited to 'gtk2_ardour/marker.cc')
-rw-r--r--gtk2_ardour/marker.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/marker.cc b/gtk2_ardour/marker.cc
index f38e295c39..c5bd57b9e4 100644
--- a/gtk2_ardour/marker.cc
+++ b/gtk2_ardour/marker.cc
@@ -338,6 +338,9 @@ ArdourMarker::set_selected (bool s)
{
_selected = s;
setup_line ();
+
+ mark->set_fill_color (_selected ? UIConfiguration::instance().color ("entered marker") : _color);
+ mark->set_outline_color ( _selected ? UIConfiguration::instance().color ("entered marker") : _color );
}
void
@@ -514,8 +517,9 @@ void
ArdourMarker::set_color_rgba (uint32_t c)
{
_color = c;
- mark->set_fill_color (_color);
- mark->set_outline_color (_color);
+
+ mark->set_fill_color (_selected ? UIConfiguration::instance().color ("entered marker") : _color);
+ mark->set_outline_color ( _selected ? UIConfiguration::instance().color ("entered marker") : _color );
if (_track_canvas_line && !_selected) {
_track_canvas_line->set_outline_color (_color);