Mixer: change active/inactive coloring of modules to make deactivation more visible.

This commit is contained in:
Jonathan Moore Liles 2013-03-14 17:30:50 -07:00
parent a99f707bda
commit 70e0db1c47
3 changed files with 10 additions and 4 deletions

View File

@ -64,6 +64,8 @@ JACK_Module::JACK_Module ( )
end();
color( FL_BLACK );
log_create();
}

View File

@ -128,6 +128,7 @@ Module::init ( void )
labeltype( FL_NO_LABEL );
set_visible_focus();
selection_color( FL_RED );
color( fl_color_average( FL_GREEN, FL_GRAY, 0.4 ) );
}
@ -531,14 +532,14 @@ Module::draw_box ( void )
fl_push_clip( tx, ty, tw, th );
Fl_Color c = is_default() ? FL_BLACK : color();
Fl_Color c = color();
c = active() && ! bypass() ? c : fl_inactive( c );
c = active() && ! bypass() ? c : FL_GRAY;
int spacing = w() / instances();
for ( int i = instances(); i--; )
{
fl_draw_box( box(), tx + (spacing * i), ty, tw / instances(), th, Fl::belowmouse() == this ? fl_lighter( c ) : c );
fl_draw_box( box(), tx + (spacing * i), ty, tw / instances(), th, c );
}
if ( this == Fl::focus() )

View File

@ -175,6 +175,9 @@ Plugin_Module::init ( void )
align( (Fl_Align)FL_ALIGN_CENTER | FL_ALIGN_INSIDE );
color( (Fl_Color)fl_color_average( FL_BLUE, FL_GREEN, 0.5f ) );
// color( FL_FOREGROUND_COLOR );
/* color( fl_color_average( FL_CYAN, FL_WHITE, 0.40 ) ); */
int tw, th, tx, ty;
bbox( tx, ty, tw, th );