Skip to content

Commit

Permalink
Amplifier redesign (LMMS#2985)
Browse files Browse the repository at this point in the history
* Amplifier redesign

* Center the plugin
  • Loading branch information
Umcaruje authored Aug 20, 2016
1 parent 000ba01 commit 56af3c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions plugins/Amplifier/AmplifierControlDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,33 +38,32 @@ AmplifierControlDialog::AmplifierControlDialog( AmplifierControls* controls ) :
QPalette pal;
pal.setBrush( backgroundRole(), PLUGIN_NAME::getIconPixmap( "artwork" ) );
setPalette( pal );
setFixedSize( 100, 125 );
setFixedSize( 100, 110 );

Knob * volumeKnob = new Knob( knobBright_26, this);
volumeKnob -> move( 20, 30 );
volumeKnob -> move( 16, 10 );
volumeKnob -> setVolumeKnob( true );
volumeKnob->setModel( &controls->m_volumeModel );
volumeKnob->setLabel( tr( "VOL" ) );
volumeKnob->setHintText( tr( "Volume:" ) , "%" );

Knob * panKnob = new Knob( knobBright_26, this);
panKnob -> move( 60, 30 );
panKnob -> move( 57, 10 );
panKnob->setModel( &controls->m_panModel );
panKnob->setLabel( tr( "PAN" ) );
panKnob->setHintText( tr( "Panning:" ) , "" );

Knob * leftKnob = new Knob( knobBright_26, this);
leftKnob -> move( 20, 80 );
leftKnob -> move( 16, 65 );
leftKnob -> setVolumeKnob( true );
leftKnob->setModel( &controls->m_leftModel );
leftKnob->setLabel( tr( "LEFT" ) );
leftKnob->setHintText( tr( "Left gain:" ) , "%" );

Knob * rightKnob = new Knob( knobBright_26, this);
rightKnob -> move( 60, 80 );
rightKnob -> move( 57, 65 );
rightKnob -> setVolumeKnob( true );
rightKnob->setModel( &controls->m_rightModel );
rightKnob->setLabel( tr( "RIGHT" ) );
rightKnob->setHintText( tr( "Right gain:" ) , "%" );
}

Binary file modified plugins/Amplifier/artwork.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 56af3c8

Please sign in to comment.