diff --git a/data/themes/classic/step_btn_on.png b/data/themes/classic/step_btn_on.png deleted file mode 100644 index d4d207d83..000000000 Binary files a/data/themes/classic/step_btn_on.png and /dev/null differ diff --git a/data/themes/classic/step_btn_on_100.png b/data/themes/classic/step_btn_on_0.png similarity index 100% rename from data/themes/classic/step_btn_on_100.png rename to data/themes/classic/step_btn_on_0.png diff --git a/data/themes/classic/step_btn_on_200.png b/data/themes/classic/step_btn_on_200.png new file mode 100644 index 000000000..02586b337 Binary files /dev/null and b/data/themes/classic/step_btn_on_200.png differ diff --git a/data/themes/classic/step_btn_on_yellow.png b/data/themes/classic/step_btn_on_yellow.png deleted file mode 100644 index b69defeb9..000000000 Binary files a/data/themes/classic/step_btn_on_yellow.png and /dev/null differ diff --git a/data/themes/default/step_btn_on_0.png b/data/themes/default/step_btn_on_0.png new file mode 100644 index 000000000..6b6a66b69 Binary files /dev/null and b/data/themes/default/step_btn_on_0.png differ diff --git a/data/themes/default/step_btn_on_100.png b/data/themes/default/step_btn_on_200.png similarity index 100% rename from data/themes/default/step_btn_on_100.png rename to data/themes/default/step_btn_on_200.png diff --git a/include/Pattern.h b/include/Pattern.h index cb5464539..947f26d11 100644 --- a/include/Pattern.h +++ b/include/Pattern.h @@ -186,14 +186,14 @@ protected: private: - static QPixmap * s_stepBtnOn; - static QPixmap * s_stepBtnOverlay; + static QPixmap * s_stepBtnOn0; + static QPixmap * s_stepBtnOn200; static QPixmap * s_stepBtnOff; static QPixmap * s_stepBtnOffLight; Pattern* m_pat; QPixmap m_paintPixmap; - + QStaticText m_staticTextName; } ; diff --git a/src/tracks/Pattern.cpp b/src/tracks/Pattern.cpp index 2266e512f..86766b112 100644 --- a/src/tracks/Pattern.cpp +++ b/src/tracks/Pattern.cpp @@ -51,7 +51,8 @@ #include "MainWindow.h" -QPixmap * PatternView::s_stepBtnOn = NULL; +QPixmap * PatternView::s_stepBtnOn0 = NULL; +QPixmap * PatternView::s_stepBtnOn200 = NULL; QPixmap * PatternView::s_stepBtnOff = NULL; QPixmap * PatternView::s_stepBtnOffLight = NULL; @@ -608,10 +609,16 @@ PatternView::PatternView( Pattern* pattern, TrackView* parent ) : connect( gui->pianoRoll(), SIGNAL( currentPatternChanged() ), this, SLOT( update() ) ); - if( s_stepBtnOn == NULL ) + if( s_stepBtnOn0 == NULL ) { - s_stepBtnOn = new QPixmap( embed::getIconPixmap( - "step_btn_on_100" ) ); + s_stepBtnOn0 = new QPixmap( embed::getIconPixmap( + "step_btn_on_0" ) ); + } + + if( s_stepBtnOn200 == NULL ) + { + s_stepBtnOn200 = new QPixmap( embed::getIconPixmap( + "step_btn_on_200" ) ); } if( s_stepBtnOff == NULL ) @@ -992,7 +999,8 @@ void PatternView::paintEvent( QPaintEvent * ) else if( beatPattern && ( fixedTCOs() || ppt >= 96 || m_pat->m_steps != MidiTime::stepsPerTact() ) ) { - QPixmap stepon; + QPixmap stepon0; + QPixmap stepon200; QPixmap stepoff; QPixmap stepoffl; const int steps = qMax( 1, @@ -1000,8 +1008,12 @@ void PatternView::paintEvent( QPaintEvent * ) const int w = width() - 2 * TCO_BORDER_WIDTH; // scale step graphics to fit the beat pattern length - stepon = s_stepBtnOn->scaled( w / steps, - s_stepBtnOn->height(), + stepon0 = s_stepBtnOn0->scaled( w / steps, + s_stepBtnOn0->height(), + Qt::IgnoreAspectRatio, + Qt::SmoothTransformation ); + stepon200 = s_stepBtnOn200->scaled( w / steps, + s_stepBtnOn200->height(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation ); stepoff = s_stepBtnOff->scaled( w / steps, @@ -1025,8 +1037,9 @@ void PatternView::paintEvent( QPaintEvent * ) { const int vol = n->getVolume(); p.drawPixmap( x, y, stepoffl ); + p.drawPixmap( x, y, stepon0 ); p.setOpacity( sqrt( vol / 200.0 ) ); - p.drawPixmap( x, y, stepon ); + p.drawPixmap( x, y, stepon200 ); p.setOpacity( 1 ); } else if( ( it / 4 ) % 2 )