13
0

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
This commit is contained in:
Carl Hetherington 2011-01-04 00:20:23 +00:00
parent d795980546
commit 8d424156ab

View File

@ -106,6 +106,12 @@ ProcessorEntry::ProcessorEntry (boost::shared_ptr<Processor> p, Width w)
_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));
@ -516,7 +522,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);
if (pointer.first) {