Mixer: Tweak strip highlighting.

This commit is contained in:
Jonathan Moore Liles 2020-10-29 20:15:07 -07:00
parent 6673606262
commit a59823e4c5
1 changed files with 4 additions and 0 deletions

View File

@ -1244,6 +1244,10 @@ Mixer_Strip::number ( int n )
char *s =NULL; char *s =NULL;
asprintf( &s,"%i", n+1 ); asprintf( &s,"%i", n+1 );
dsp_load_progress->label(s); dsp_load_progress->label(s);
/* color code groups of eight */
dsp_load_progress->color( (n / 8) % 2 == 0 ? FL_BACKGROUND_COLOR : FL_BLACK );
/* dsp_load_progress->color( fl_color_average( (Fl_Color)n / 8, FL_BACKGROUND_COLOR, 0.66f )); */
dsp_load_progress->labelcolor(fl_contrast( FL_BACKGROUND_COLOR, dsp_load_progress->color() ));
} }
} }