Browse Source

Mixer: Draw inactive modules in darker colors.

tags/non-daw-v1.1.0
Jonathan Moore Liles 15 years ago
parent
commit
6782bcbdf8
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      Mixer/Module.C

+ 8
- 1
Mixer/Module.C 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 )


Loading…
Cancel
Save