From b73477b250ed299c84ab416e50e33e67428b3a34 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 19 Dec 2014 09:53:51 -0500 Subject: [PATCH] add more controllable modifiers for region transparency --- gtk2_ardour/dark.colors | 2 ++ gtk2_ardour/region_view.cc | 11 ++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/dark.colors b/gtk2_ardour/dark.colors index 5c3e8bb719..2b543b2aac 100644 --- a/gtk2_ardour/dark.colors +++ b/gtk2_ardour/dark.colors @@ -499,6 +499,8 @@ + + diff --git a/gtk2_ardour/region_view.cc b/gtk2_ardour/region_view.cc index c9c423e68a..93b8fa3321 100644 --- a/gtk2_ardour/region_view.cc +++ b/gtk2_ardour/region_view.cc @@ -525,11 +525,16 @@ RegionView::set_colors () uint32_t RegionView::get_fill_color () const { - uint32_t f = TimeAxisViewItem::get_fill_color(); + ArdourCanvas::Color f = TimeAxisViewItem::get_fill_color(); + char const *modname; + if (_region->opaque()) { - f = UINT_RGBA_CHANGE_A (f, 255); + modname = "opaque region base"; + } else { + modname = "transparent region base"; } - return f; + + return HSV(f).mod (ARDOUR_UI::config()->modifier (modname)).color (); } void