Mixer: Make chains look better in the Light scheme.

This commit is contained in:
Jonathan Moore Liles 2010-01-31 19:14:54 -06:00
parent 4416161862
commit 9916fa0c4f
2 changed files with 6 additions and 6 deletions

View File

@ -116,10 +116,11 @@ Chain::Chain ( ) : Fl_Group( 0, 0, 100, 100, "")
{ Fl_Group *o = chain_tab = new Fl_Group( X, Y, W, H, "" ); { Fl_Group *o = chain_tab = new Fl_Group( X, Y, W, H, "" );
o->labeltype( FL_NO_LABEL ); o->labeltype( FL_NO_LABEL );
o->box( FL_FLAT_BOX ); o->box( FL_FLAT_BOX );
o->color( fl_darker( FL_BACKGROUND_COLOR ) ); // o->color( fl_darker( FL_BACKGROUND_COLOR ) );
// o->color( FL_BACKGROUND_COLOR );
// o->box( FL_NO_BOX ); // o->box( FL_NO_BOX );
{ Fl_Packscroller *o = new Fl_Packscroller( X, Y, W, H ); { Fl_Packscroller *o = new Fl_Packscroller( X, Y, W, H );
o->color( fl_darker( FL_BACKGROUND_COLOR ) ); o->color( FL_BACKGROUND_COLOR );
// o->box( FL_FLAT_BOX ); // o->box( FL_FLAT_BOX );
o->box( FL_THIN_UP_BOX ); o->box( FL_THIN_UP_BOX );
o->type( Fl_Scroll::VERTICAL ); o->type( Fl_Scroll::VERTICAL );
@ -138,7 +139,7 @@ Chain::Chain ( ) : Fl_Group( 0, 0, 100, 100, "")
o->labeltype( FL_NO_LABEL ); o->labeltype( FL_NO_LABEL );
o->hide(); o->hide();
{ Fl_Scroll *o = new Fl_Scroll( X, Y, W, H ); { Fl_Scroll *o = new Fl_Scroll( X, Y, W, H );
o->color( fl_darker( FL_BACKGROUND_COLOR ) ); o->color( FL_BACKGROUND_COLOR );
o->box( FL_FLAT_BOX ); o->box( FL_FLAT_BOX );
o->type( Fl_Scroll::VERTICAL ); o->type( Fl_Scroll::VERTICAL );
{ Fl_Flowpack *o = controls_pack = new Fl_Flowpack( X, Y, W, H ); { Fl_Flowpack *o = controls_pack = new Fl_Flowpack( X, Y, W, H );

View File

@ -304,7 +304,7 @@ Module::set_parameters ( const char *parameters )
void void
Module::draw_box ( void ) Module::draw_box ( void )
{ {
fl_color( FL_WHITE ); fl_color( fl_contrast( FL_FOREGROUND_COLOR, color() ) );
int tw, th, tx, ty; int tw, th, tx, ty;
@ -362,10 +362,9 @@ Module::draw_label ( void )
Fl_Color c = FL_FOREGROUND_COLOR; Fl_Color c = FL_FOREGROUND_COLOR;
if ( bypass() || ! active() ) if ( bypass() || ! active() )
c = FL_BLACK; c = FL_BLACK;
fl_color( c ); fl_color( fl_contrast( c, is_default() ? FL_BLACK : color() ) );
char *s = NULL; char *s = NULL;