Added automatic dark note on light background for midi clips. (#6539)

This commit is contained in:
Austin
2023-09-17 08:34:42 -07:00
committed by GitHub
parent d25723cead
commit 4348038b0f

View File

@@ -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() );