Skip to content

Commit

Permalink
Adjusted the lightness threshold for note darkening on light clips to…
Browse files Browse the repository at this point in the history
… prefer lighter notes in order to maintain the original look and feel.
  • Loading branch information
aakers24 committed Sep 17, 2023
1 parent 7c97cd0 commit c2d02bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/clips/MidiClipView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ void MidiClipView::paintEvent( QPaintEvent * )

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

Expand Down

0 comments on commit c2d02bb

Please sign in to comment.