summaryrefslogtreecommitdiff
path: root/gtk2_ardour/control_point.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-16 00:04:06 -0500
committerDavid Robillard <d@drobilla.net>2014-12-16 00:04:06 -0500
commit211f8f61d7cc11dcf867010735e335201563b1d2 (patch)
treec467c9384d0d62d95571f8d67dfacf3d1d9ec436 /gtk2_ardour/control_point.cc
parente90ecdd5c55a6e9a2f24a6fa36b53e3581094bcb (diff)
Fix control point colors.
Diffstat (limited to 'gtk2_ardour/control_point.cc')
-rw-r--r--gtk2_ardour/control_point.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/gtk2_ardour/control_point.cc b/gtk2_ardour/control_point.cc
index 406e134e3e..4963b2589d 100644
--- a/gtk2_ardour/control_point.cc
+++ b/gtk2_ardour/control_point.cc
@@ -119,16 +119,13 @@ ControlPoint::reset (double x, double y, AutomationList::iterator mi, uint32_t v
void
ControlPoint::set_color ()
{
- uint32_t color = 0;
-
if (_selected) {
- color = ARDOUR_UI::config()->color ("control point selected");
+ _item->set_outline_color(ARDOUR_UI::config()->color ("control point selected outline"));;
+ _item->set_fill_color(ARDOUR_UI::config()->color ("control point selected fill"));
} else {
- color = ARDOUR_UI::config()->color ("control point outline");
+ _item->set_outline_color(ARDOUR_UI::config()->color ("control point outline"));
+ _item->set_fill_color(ARDOUR_UI::config()->color ("control point fill"));
}
-
- _item->set_outline_color (color);
- _item->set_fill_color (ARDOUR_UI::config()->color ("control point fill"));
}
void