Timeline: Improve the appearance of measure lines.
This commit is contained in:
parent
d7fc792839
commit
b1cbd4faa6
|
@ -692,16 +692,14 @@ Timeline::x_to_offset ( int x ) const
|
||||||
|
|
||||||
/** draws a single measure line */
|
/** draws a single measure line */
|
||||||
static void
|
static void
|
||||||
draw_measure_cb ( nframes_t frame, const BBT &bbt, void *arg )
|
draw_measure_cb ( nframes_t frame, const BBT &bbt, void * )
|
||||||
{
|
{
|
||||||
Fl_Color *color = (Fl_Color*)arg;
|
Fl_Color c = FL_LIGHT3;
|
||||||
|
|
||||||
Fl_Color c = fl_color_average( FL_LIGHT3, FL_RED, 0.50 );
|
|
||||||
|
|
||||||
if ( bbt.beat )
|
if ( bbt.beat )
|
||||||
c = FL_LIGHT3;
|
c = FL_DARK1;
|
||||||
|
|
||||||
fl_color( fl_color_add_alpha( c, 48 ) );
|
fl_color( fl_color_add_alpha( c, 64 ) );
|
||||||
|
|
||||||
const int x = timeline->ts_to_x( frame - timeline->xoffset ) + Track::width();
|
const int x = timeline->ts_to_x( frame - timeline->xoffset ) + Track::width();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue