From a869b39cd9732835857a0c653d0ed732d8e9460b Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Thu, 12 Jan 2017 15:07:30 -0600 Subject: [PATCH] allow automation line fill opacity to be theme-able --- gtk2_ardour/automation_line.cc | 5 ++++- gtk2_ardour/themes/dark-ardour.colors | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index acc6cffd0e..98b87ee6e6 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -244,7 +244,10 @@ AutomationLine::set_line_color (uint32_t color) { _line_color = color; line->set_outline_color (color); - line->set_fill_color ((color & 0xffff00) + 80); // XXX TODO configurable transparency + + ArdourCanvas::SVAModifier mod = UIConfiguration::instance().modifier ("automation line fill"); + + line->set_fill_color ((color & 0xffffff00) + mod.a()*255); } void diff --git a/gtk2_ardour/themes/dark-ardour.colors b/gtk2_ardour/themes/dark-ardour.colors index 42b4e57456..caf27d02a9 100644 --- a/gtk2_ardour/themes/dark-ardour.colors +++ b/gtk2_ardour/themes/dark-ardour.colors @@ -503,6 +503,7 @@ +