Update to fx fader knob, changed fade_button (the blinky thing in instrument tracks) to comply with palette

This commit is contained in:
Vesa
2014-01-17 20:14:18 +02:00
parent 684326a1ff
commit ab5ecfee8f
3 changed files with 6 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 768 B

After

Width:  |  Height:  |  Size: 759 B

View File

@@ -99,10 +99,10 @@ void fadeButton::paintEvent( QPaintEvent * _pe )
int w = rect().right();
int h = rect().bottom();
p.setPen( QColor( 37, 39, 46 ) );
p.setPen( m_normalColor.darker(130) );
p.drawLine( w, 1, w, h );
p.drawLine( 1, h, w, h );
p.setPen( QColor( 145, 147, 154 ) );
p.setPen( m_normalColor.lighter(130) );
p.drawLine( 0, 0, 0, h-1 );
p.drawLine( 0, 0, w, 0 );
}

View File

@@ -1007,8 +1007,10 @@ InstrumentTrackView::InstrumentTrackView( InstrumentTrack * _it, TrackContainerV
m_midiInputAction->setText( tr( "Input" ) );
m_midiOutputAction->setText( tr( "Output" ) );
m_activityIndicator = new fadeButton( QColor( 56, 60, 72 ),
QColor( 64, 255, 16 ),
m_activityIndicator = new fadeButton( QApplication::palette().color( QPalette::Active,
QPalette::Background),
QApplication::palette().color( QPalette::Active,
QPalette::BrightText ),
getTrackSettingsWidget() );
m_activityIndicator->setGeometry(
widgetWidth-2*24-11, 2, 8, 28 );