diff --git a/data/themes/default/lfo_controller_artwork.png b/data/themes/default/lfo_controller_artwork.png old mode 100755 new mode 100644 index 5ab16c11d13..85f39110c5e Binary files a/data/themes/default/lfo_controller_artwork.png and b/data/themes/default/lfo_controller_artwork.png differ diff --git a/plugins/peak_controller_effect/artwork.png b/plugins/peak_controller_effect/artwork.png index 66fe2c95226..4f4ba9b9d50 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 7675da5d01d..1a7b808e609 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(); + + 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 ); - setLayout( tl ); + this->setLayout( mainLayout ); } diff --git a/src/gui/LfoControllerDialog.cpp b/src/gui/LfoControllerDialog.cpp index f13928969f5..6db0bb72cdb 100644 --- a/src/gui/LfoControllerDialog.cpp +++ b/src/gui/LfoControllerDialog.cpp @@ -89,7 +89,7 @@ LfoControllerDialog::LfoControllerDialog( Controller * _model, QWidget * _parent m_amountKnob = new Knob( knobBright_26, this ); - m_amountKnob->setLabel( tr( "AMT" ) ); + m_amountKnob->setLabel( tr( "AMNT" ) ); m_amountKnob->move( CD_LFO_AMOUNT_CD_KNOB_X, CD_LFO_CD_KNOB_Y ); m_amountKnob->setHintText( tr( "Modulation amount:" ), "" ); m_amountKnob->setWhatsThis(