diff options
author | David Robillard <d@drobilla.net> | 2014-12-16 20:37:16 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-18 20:23:34 -0500 |
commit | 60313085209a6213a7388e0b1070c10e83fe2a10 (patch) | |
tree | 8838eac295e2079cc1c2b28defb0819a6271e3ca /gtk2_ardour/region_view.cc | |
parent | a12a065457a10d9be2582f3ad2fcee7178405981 (diff) |
Use color modifiers for dynamic region styles.
Diffstat (limited to 'gtk2_ardour/region_view.cc')
-rw-r--r-- | gtk2_ardour/region_view.cc | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/gtk2_ardour/region_view.cc b/gtk2_ardour/region_view.cc index bd80e27acb..c9c423e68a 100644 --- a/gtk2_ardour/region_view.cc +++ b/gtk2_ardour/region_view.cc @@ -510,18 +510,6 @@ RegionView::set_duration (framecnt_t frames, void *src) return true; } -uint32_t -RegionView::fill_opacity () const -{ - if (!_region->opaque()) { - return 60; - } - - uint32_t normal_tavi_opacity = TimeAxisViewItem::fill_opacity (); - - return normal_tavi_opacity; -} - void RegionView::set_colors () { @@ -534,10 +522,14 @@ RegionView::set_colors () } } -void -RegionView::set_frame_color () +uint32_t +RegionView::get_fill_color () const { - TimeAxisViewItem::set_frame_color (); + uint32_t f = TimeAxisViewItem::get_fill_color(); + if (_region->opaque()) { + f = UINT_RGBA_CHANGE_A (f, 255); + } + return f; } void |