From 45fddc85331e1ab07768a18e463fac5b4daaaf03 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 11 Jul 2022 21:39:31 +0200 Subject: [PATCH] Slightly improve rendering of muted regions A fully transparent waveform (with only a semi-transparent outline) looks very odd with all themes. Perhaps this was a typo and the initially intended rendering was supposed to be 31% transparent, however this is not distinguishable from non-opaque regions (27% transparency). --- gtk2_ardour/audio_region_view.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/audio_region_view.cc b/gtk2_ardour/audio_region_view.cc index 31a47f8e07..885da03652 100644 --- a/gtk2_ardour/audio_region_view.cc +++ b/gtk2_ardour/audio_region_view.cc @@ -1596,7 +1596,7 @@ AudioRegionView::set_some_waveform_colors (vector& wa fill = UINT_RGBA_CHANGE_A(UIConfiguration::instance().color ("waveform fill"), 0xC0); } else if (_region->muted()) { outline = UINT_RGBA_CHANGE_A(UIConfiguration::instance().color ("waveform outline"), 80); - fill = UINT_RGBA_CHANGE_A(UIConfiguration::instance().color ("waveform fill"), 0); + fill = UINT_INTERPOLATE(fill_color, UIConfiguration::instance().color ("covered region"), 0.7); } else if (!_region->opaque()) { outline = UINT_RGBA_CHANGE_A(UIConfiguration::instance().color ("waveform outline"), 70); fill = UINT_RGBA_CHANGE_A(UIConfiguration::instance().color ("waveform fill"), 70);