From 00dcf4d571f4913c5b48358020980e08fd9c4584 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 9 Aug 2018 17:10:22 +0200 Subject: [PATCH] Backport Mixbus' mixer shadow This is incomplete, pending backporting of Mixbus mixer_ui.h changes, but this way it won't be forgotten. And it might be handy to also include the shadow in Ardour's theme?! --- gtk2_ardour/mixer_ui.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index 044dac1ccc..1e49a3b0f3 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -153,6 +153,14 @@ Mixer_UI::Mixer_UI () strip_packer.pack_end (scroller_base, true, true); strip_packer.pack_end (add_button, false, false); +#ifdef MIXBUS + /* create a drop-shadow at the end of the mixer strips */ + mb_shadow.set_size_request( 4, -1 ); + mb_shadow.set_name("EditorWindow"); + mb_shadow.show(); + strip_packer.pack_end (mb_shadow, false, false); +#endif + _group_tabs = new MixerGroupTabs (this); VBox* b = manage (new VBox); b->set_spacing (0); @@ -2269,6 +2277,11 @@ Mixer_UI::scroll_left () if (i->get_widget() == & add_button) { continue; } +#ifdef MIXBUS + if (i->get_widget() == &mb_shadow) { + continue; + } +#endif lm += i->get_widget()->get_width (); if (lm >= lp) { lm -= i->get_widget()->get_width (); @@ -2296,6 +2309,11 @@ Mixer_UI::scroll_right () if (i->get_widget() == & add_button) { continue; } +#ifdef MIXBUS + if (i->get_widget() == &mb_shadow) { + continue; + } +#endif lm += i->get_widget()->get_width (); if (lm > lp + 1) { break; -- 2.30.2