mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-24 00:43:22 -04:00
fixed color for drawing pattern-name to make it better readable at orange background
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1203 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -625,8 +625,7 @@ void automationPatternView::paintEvent( QPaintEvent * )
|
||||
const float max = m_pat->firstObject()->maxValue<float>();
|
||||
|
||||
const float y_scale = max - min;
|
||||
const float h = ( height()-2*TCO_BORDER_WIDTH ) /
|
||||
y_scale;
|
||||
const float h = ( height()-2*TCO_BORDER_WIDTH ) / y_scale;
|
||||
|
||||
p.translate( 0.0f, max * height() / y_scale-1 );
|
||||
p.scale( 1.0f, -h );
|
||||
@@ -673,7 +672,7 @@ void automationPatternView::paintEvent( QPaintEvent * )
|
||||
}
|
||||
else
|
||||
{
|
||||
p.setPen( QColor( 32, 240, 32 ) );
|
||||
p.setPen( QColor( 0, 64, 255 ) );
|
||||
}
|
||||
|
||||
p.drawText( 2, p.fontMetrics().height() - 1, m_pat->name() );
|
||||
|
||||
Reference in New Issue
Block a user