Mixer: Draw inactive modules in darker colors.

pull/3/head
Jonathan Moore Liles 2010-01-18 22:44:57 -06:00
parent c684a49afc
commit 6782bcbdf8
1 changed files with 8 additions and 1 deletions

View File

@ -249,6 +249,7 @@ Module::draw_box ( void )
Fl_Color c = is_default() ? FL_BLACK : color();
c = active() ? c : fl_inactive( c );
int spacing = w() / instances();
for ( int i = instances(); i--; )
@ -282,7 +283,13 @@ Module::draw_label ( void )
int l = strlen( label() );
fl_color( FL_FOREGROUND_COLOR );
Fl_Color c = FL_FOREGROUND_COLOR;
if ( ! active() )
c = FL_BLACK;
fl_color( c );
char *s = NULL;
if ( l > 10 )