Browse Source

Timeline: Tweak style of measure lines.

tags/non-daw-v1.3.0
Jonathan Moore Liles 3 years ago
parent
commit
6bee859f6f
1 changed files with 16 additions and 4 deletions
  1. +16
    -4
      timeline/src/Timeline.C

+ 16
- 4
timeline/src/Timeline.C View File

@@ -997,20 +997,32 @@ Timeline::draw_measure_cb ( nframes_t frame, const BBT &bbt, void *v )
{
Timeline *o = (Timeline*)v;

Fl_Color c = FL_LIGHT3;

if ( o->panzoomer->zoom() >= 15 )
return;
Fl_Color mc = FL_LIGHT3;
Fl_Color bc = FL_LIGHT2;
Fl_Color c;
Fl_Color ct = fl_contrast( mc, FL_BACKGROUND_COLOR );

if ( FL_BLACK == ct )
{
/* in a light color scheme mode */
mc = fl_rgb_color(30,30,30);
bc = FL_DARK3;
}

if ( bbt.beat )
{
if ( o->panzoomer->zoom() > 12 )
return;
else
c = FL_DARK1;
c = bc;
}
else
c = mc;

fl_color( fl_color_add_alpha( c, 64 ) );
fl_color( fl_color_add_alpha( c, 127 ) );
const int x = timeline->ts_to_x( frame - timeline->xoffset ) + Track::width();



Loading…
Cancel
Save