From 70e517380c6471e5b40a5057eeb75b82b8b959b9 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 15 Dec 2014 09:05:25 -0500 Subject: [PATCH] add 22 modifiers to dark.colors and start using the first one (for crossfade alpha) --- gtk2_ardour/audio_region_view.cc | 8 ++++---- gtk2_ardour/dark.colors | 25 +++++++++++++++++++++++-- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/gtk2_ardour/audio_region_view.cc b/gtk2_ardour/audio_region_view.cc index e29e0bd103..8a146520ec 100644 --- a/gtk2_ardour/audio_region_view.cc +++ b/gtk2_ardour/audio_region_view.cc @@ -737,7 +737,7 @@ AudioRegionView::redraw_start_xfade_to (boost::shared_ptr ar, frame if (!start_xfade_curve) { start_xfade_curve = new ArdourCanvas::XFadeCurve (group, ArdourCanvas::XFadeCurve::Start); CANVAS_DEBUG_NAME (start_xfade_curve, string_compose ("xfade start out line for %1", region()->name())); - start_xfade_curve->set_fill_color (ARDOUR_UI::config()->color ("active crossfade")); + start_xfade_curve->set_fill_color (ARDOUR_UI::config()->color_mod ("active crossfade", "crossfade alpha")); start_xfade_curve->set_outline_color (ARDOUR_UI::config()->color ("crossfade line")); start_xfade_curve->set_ignore_events (true); } @@ -826,7 +826,7 @@ AudioRegionView::redraw_end_xfade_to (boost::shared_ptr ar, framecn if (!end_xfade_curve) { end_xfade_curve = new ArdourCanvas::XFadeCurve (group, ArdourCanvas::XFadeCurve::End); CANVAS_DEBUG_NAME (end_xfade_curve, string_compose ("xfade end out line for %1", region()->name())); - end_xfade_curve->set_fill_color (ARDOUR_UI::config()->color ("active crossfade")); + end_xfade_curve->set_fill_color (ARDOUR_UI::config()->color_mod ("active crossfade", "crossfade alpha")); end_xfade_curve->set_outline_color (ARDOUR_UI::config()->color ("crossfade line")); end_xfade_curve->set_ignore_events (true); } @@ -994,11 +994,11 @@ AudioRegionView::set_colors () set_waveform_colors (); if (start_xfade_curve) { - start_xfade_curve->set_fill_color (ARDOUR_UI::config()->color ("active crossfade")); + start_xfade_curve->set_fill_color (ARDOUR_UI::config()->color_mod ("active crossfade", "crossfade alpha")); start_xfade_curve->set_outline_color (ARDOUR_UI::config()->color ("crossfade line")); } if (end_xfade_curve) { - end_xfade_curve->set_fill_color (ARDOUR_UI::config()->color ("active crossfade")); + end_xfade_curve->set_fill_color (ARDOUR_UI::config()->color_mod ("active crossfade", "crossfade alpha")); end_xfade_curve->set_outline_color (ARDOUR_UI::config()->color ("crossfade line")); } diff --git a/gtk2_ardour/dark.colors b/gtk2_ardour/dark.colors index 3a83cc9f7b..f02c29c321 100644 --- a/gtk2_ardour/dark.colors +++ b/gtk2_ardour/dark.colors @@ -1,3 +1,4 @@ + @@ -12,7 +13,7 @@ - + @@ -483,6 +484,26 @@ - + + + + + + + + + + + + + + + + + + + + +