Backport Mixbus' mixer shadow
authorRobin Gareus <robin@gareus.org>
Thu, 9 Aug 2018 15:10:22 +0000 (17:10 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 9 Aug 2018 15:10:22 +0000 (17:10 +0200)
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

index 044dac1ccc97843d8922f2af47c907da77eb8edd..1e49a3b0f359360c56e5c393f6305e9548f517c9 100644 (file)
@@ -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;