Effect panel & effect window style, new knob images, knobs use palette
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user