diff options
author | Carl Hetherington <carl@carlh.net> | 2011-01-04 00:20:23 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-01-04 00:20:23 +0000 |
commit | 8d424156abec8ad23b6b3eba65d77642cfbfa72c (patch) | |
tree | 50c9c01518cbc958b1b72435545e5fc1b377d6fd /gtk2_ardour/processor_box.cc | |
parent | d795980546156b5094a23b465f68c9c9472818b7 (diff) |
First attempt at highlighting the fader processor to make it more obvious where pre and post fader plugins are.
git-svn-id: svn://localhost/ardour2/branches/3.0@8424 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 5db759ce85..463be7c521 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -105,7 +105,13 @@ ProcessorEntry::ProcessorEntry (boost::shared_ptr<Processor> p, Width w) _name.set_alignment (0, 0.5); _name.set_text (name ()); _name.set_padding (2, 2); - + + if (boost::dynamic_pointer_cast<Amp> (p)) { + /* Highlight the fader processor so that pre- and post-fader processors are more obvious */ + _event_box.modify_bg (STATE_NORMAL, Gdk::Color ("#4f4f4f")); + _name.set_padding (2, 4); + } + _active.set_active (_processor->active ()); _active.signal_toggled().connect (sigc::mem_fun (*this, &ProcessorEntry::active_toggled)); @@ -515,7 +521,6 @@ ProcessorBox::processor_key_release_event (GdkEventKey *ev) int x, y; processor_display.get_pointer (x, y); - pair<ProcessorEntry *, double> const pointer = processor_display.get_child_at_position (y); |