From 30aea72c9ca65aebaa6d0d2eeaafcff8d7ecfcc9 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 29 Jun 2008 09:34:30 +0000 Subject: [PATCH] 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 --- src/core/automation_pattern.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/automation_pattern.cpp b/src/core/automation_pattern.cpp index 43ea7e50b4..a0c1383b62 100644 --- a/src/core/automation_pattern.cpp +++ b/src/core/automation_pattern.cpp @@ -625,8 +625,7 @@ void automationPatternView::paintEvent( QPaintEvent * ) const float max = m_pat->firstObject()->maxValue(); 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() );