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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 424 B

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -173,7 +173,39 @@ automatableSlider::handle:vertical {
margin: -4px -12px -2px;
}
EffectRackView QScrollArea, EffectRackView QVBoxLayout {
border-radius: 2px;
border: 1px solid rgba(0,0,0, 64);
background: #49515b;
}
EffectSelectDialog QScrollArea {
background: #5b6571;
}
ControllerRackView QScrollArea, ControllerRackView QVBoxLayout {
border-radius: 2px;
border: 1px solid rgba(0,0,0, 64);
background: #49515b;
}
EffectControlDialog QGroupBox {
background: #49515b;
margin-top: 1ex;
padding: 10px 2px 1px;
border-radius: 4px;
border: 1px solid rgba(0,0,0, 64);
}
EffectControlDialog QGroupBox::title {
subcontrol-origin: margin;
subcontrol-position: top left;
background: #5b6571;
color: white;
border-radius: 2px;
border: 1px solid rgba(0,0,0, 64);
padding: 2px 1px;
}
QWidget#mainToolbar {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #98a2a7, stop:1 #5b646f);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

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;
}