Timeline: Change style of master record button.
This commit is contained in:
parent
ea33310f33
commit
25f2a55ce0
|
@ -85,6 +85,7 @@ Transport::Transport ( int X, int Y, int W, int H, const char *L )
|
||||||
o->type( FL_TOGGLE_BUTTON );
|
o->type( FL_TOGGLE_BUTTON );
|
||||||
o->shortcut( 'R' );
|
o->shortcut( 'R' );
|
||||||
o->callback( cb_button, this );
|
o->callback( cb_button, this );
|
||||||
|
o->color2( FL_RED );
|
||||||
o->when( FL_WHEN_CHANGED );
|
o->when( FL_WHEN_CHANGED );
|
||||||
|
|
||||||
o = _punch_button;
|
o = _punch_button;
|
||||||
|
@ -129,9 +130,9 @@ Transport::update_record_state ( void )
|
||||||
|
|
||||||
/* handle display */
|
/* handle display */
|
||||||
if ( w->value() )
|
if ( w->value() )
|
||||||
w->labelcolor( FL_RED );
|
w->labelcolor( FL_BACKGROUND_COLOR );
|
||||||
else
|
else
|
||||||
w->labelcolor( fl_color_average( FL_RED, FL_WHITE, 0.25f ) );
|
w->labelcolor( FL_FOREGROUND_COLOR );
|
||||||
|
|
||||||
w->redraw();
|
w->redraw();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue