Skip to content

Commit

Permalink
Added automatic dark note on light background for midi clips. (#6539)
Browse files Browse the repository at this point in the history
  • Loading branch information
aakers24 authored Sep 17, 2023
1 parent d25723c commit 4348038
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/clips/MidiClipView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,8 @@ void MidiClipView::paintEvent( QPaintEvent * )
p.scale(width(), height() - distanceToTop - 2 * notesBorder);

// set colour based on mute status
QColor noteFillColor = muted ? getMutedNoteFillColor() : getNoteFillColor();
QColor noteFillColor = muted ? getMutedNoteFillColor().lighter(200)
: (c.lightness() > 175 ? getNoteFillColor().darker(400) : getNoteFillColor());
QColor noteBorderColor = muted ? getMutedNoteBorderColor()
: ( m_clip->hasColor() ? c.lighter( 200 ) : getNoteBorderColor() );

Expand Down

0 comments on commit 4348038

Please sign in to comment.