Effect panel & effect window style, new knob images, knobs use palette

This commit is contained in:
Vesa
2014-01-20 23:13:27 +02:00
parent eb1b306da3
commit f11ab7957b
6 changed files with 40 additions and 3 deletions

View File

@@ -328,18 +328,22 @@ void knob::drawKnob( QPainter * _p )
width() / 2 - m_knobPixmap->width() / 2 ), 0,
*m_knobPixmap );
p.setPen( QPen( QColor( 200, 0, 0 ), 2 ) );
// p.setPen( QPen( QColor( 200, 0, 0 ), 2 ) );
p.setRenderHint( QPainter::Antialiasing );
switch( m_knobNum )
{
case knobSmall_17:
{
p.drawLine( calculateLine( mid, radius ) );
p.setPen( QPen( QApplication::palette().color( QPalette::Active,
QPalette::WindowText ), 2 ) );
p.drawLine( calculateLine( mid, radius-2 ) );
break;
}
case knobBright_26:
{
p.setPen( QPen( QApplication::palette().color( QPalette::Active,
QPalette::WindowText ), 2 ) );
p.drawLine( calculateLine( mid, radius-5 ) );
break;
}
@@ -355,7 +359,8 @@ void knob::drawKnob( QPainter * _p )
}
case knobGreen_17:
{
p.setPen( QPen( QColor( 0, 200, 0 ), 2 ) );
p.setPen( QPen( QApplication::palette().color( QPalette::Active,
QPalette::BrightText, 2 ) );
p.drawLine( calculateLine( mid, radius ) );
break;
}