diff options
author | Robin Gareus <robin@gareus.org> | 2018-08-09 17:10:22 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-08-09 17:10:22 +0200 |
commit | 00dcf4d571f4913c5b48358020980e08fd9c4584 (patch) | |
tree | 1678ca81b51a291d5d89eaec95cb47445c9e1e84 | |
parent | bf694199ab9412508892608ba80da16d30f8a9ca (diff) |
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?!
-rw-r--r-- | gtk2_ardour/mixer_ui.cc | 18 |
1 files changed, 18 insertions, 0 deletions
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; |