updated small size layout issues. fixed offline render to actually work correctly based on the passed in parameters.

This commit is contained in:
essej
2022-04-15 14:29:23 -04:00
parent 681dc4de6b
commit 3510b0ee6f
9 changed files with 161 additions and 52 deletions

View File

@ -28,7 +28,7 @@ RenderSettingsComponent::RenderSettingsComponent (PaulstretchpluginAudioProcesso
addAndMakeVisible(&m_editorMaxOutDuration);
m_editorMaxOutDuration.setText("1.0", dontSendNotification);
addAndMakeVisible(&m_toggleFloatClip);
m_toggleFloatClip.setButtonText("Clip floating point output");
m_toggleFloatClip.setButtonText("Clip");
m_toggleFloatClip.setToggleState(false, dontSendNotification);
addAndMakeVisible(&labelSamplerate);
labelSamplerate.setText("Sample rate :", dontSendNotification);
@ -119,7 +119,8 @@ void RenderSettingsComponent::paint (Graphics& g)
void RenderSettingsComponent::resized()
{
int labelw = 120;
int labelw = 100;
int medlabelw = 120;
int widelabelw = 210;
int itemh = 28;
int tallitemh = 40;
@ -157,7 +158,7 @@ void RenderSettingsComponent::resized()
FlexBox loopbox;
loopbox.flexDirection = FlexBox::Direction::row;
loopbox.items.add(FlexItem(labelw, tallitemh, label3).withMargin(margin));
loopbox.items.add(FlexItem(medlabelw, tallitemh, label3).withMargin(margin));
loopbox.items.add(FlexItem(smallitemw, itemh, numLoopsEditor).withMargin(margin).withMaxHeight(itemh).withAlignSelf(FlexItem::AlignSelf::flexStart));
FlexBox maxbox;