diff --git a/plugins/peak_controller_effect/artwork.png b/plugins/peak_controller_effect/artwork.png index 66fe2c952..4f4ba9b9d 100644 Binary files a/plugins/peak_controller_effect/artwork.png and b/plugins/peak_controller_effect/artwork.png differ diff --git a/plugins/peak_controller_effect/peak_controller_effect_control_dialog.cpp b/plugins/peak_controller_effect/peak_controller_effect_control_dialog.cpp index 7675da5d0..1a7b808e6 100644 --- a/plugins/peak_controller_effect/peak_controller_effect_control_dialog.cpp +++ b/plugins/peak_controller_effect/peak_controller_effect_control_dialog.cpp @@ -39,17 +39,14 @@ PeakControllerEffectControlDialog::PeakControllerEffectControlDialog( PeakControllerEffectControls * _controls ) : EffectControlDialog( _controls ) { + setWindowIcon( embed::getIconPixmap( "controller" ) ); setAutoFillBackground( true ); QPalette pal; pal.setBrush( backgroundRole(), PLUGIN_NAME::getIconPixmap( "artwork" ) ); setPalette( pal ); + setFixedSize( 240, 100 ); - QVBoxLayout * tl = new QVBoxLayout( this ); - tl->setContentsMargins( 5, 30, 5, 8 ); - - QHBoxLayout * l = new QHBoxLayout; - l->setSpacing( 4 ); m_baseKnob = new Knob( knobBright_26, this ); m_baseKnob->setLabel( tr( "BASE" ) ); m_baseKnob->setModel( &_controls->m_baseModel ); @@ -80,28 +77,30 @@ PeakControllerEffectControlDialog::PeakControllerEffectControlDialog( m_tresholdKnob->setModel( &_controls->m_tresholdModel ); m_tresholdKnob->setHintText( tr( "Treshold:" ) , "" ); - l->addWidget( m_baseKnob ); - l->addWidget( m_amountKnob ); - l->addWidget( m_amountMultKnob ); - l->addWidget( m_attackKnob ); - l->addWidget( m_decayKnob ); - l->addWidget( m_tresholdKnob ); - l->addStretch(); // expand, so other widgets have minimum width - tl->addLayout( l ); - - QVBoxLayout * l2 = new QVBoxLayout; // = 2nd vbox - m_muteLed = new LedCheckBox( "Mute Effect", this ); m_muteLed->setModel( &_controls->m_muteModel ); m_absLed = new LedCheckBox( "Absolute Value", this ); m_absLed->setModel( &_controls->m_absModel ); - l2->addWidget( m_muteLed ); - l2->addWidget( m_absLed ); - l2->addStretch(); // expand, so other widgets have minimum height - tl->addLayout( l2 ); + QVBoxLayout * mainLayout = new QVBoxLayout(); + QHBoxLayout * knobLayout = new QHBoxLayout(); + QHBoxLayout * ledLayout = new QHBoxLayout(); - setLayout( tl ); + knobLayout->addWidget( m_baseKnob ); + knobLayout->addWidget( m_amountKnob ); + knobLayout->addWidget( m_amountMultKnob ); + knobLayout->addWidget( m_attackKnob ); + knobLayout->addWidget( m_decayKnob ); + knobLayout->addWidget( m_tresholdKnob ); + + ledLayout->addWidget( m_muteLed ); + ledLayout->addWidget( m_absLed ); + + mainLayout->setContentsMargins( 0, 30, 0, 0 ); + mainLayout->addLayout( knobLayout ); + mainLayout->addLayout( ledLayout ); + + this->setLayout( mainLayout ); }