fix compilation issues

This commit is contained in:
Armin 2026-07-24 02:59:31 +02:00
commit c06aa7b04f
4 changed files with 3335 additions and 25 deletions

View file

@ -294,6 +294,7 @@ JustaSampleAudioProcessorEditor::JustaSampleAudioProcessorEditor(JustaSampleAudi
addAndMakeVisible(showFXButton);
versionInfo.setText("Build: " + juce::String(JAS_GIT_INFO) + " (" + JAS_BUILD_TIME + ")", juce::dontSendNotification);
versionInfo.setJustificationType(juce::Justification::centredLeft);
addAndMakeVisible(versionInfo);
eqEnablementAttachment.sendInitialUpdate();
@ -439,18 +440,6 @@ void JustaSampleAudioProcessorEditor::paint(juce::Graphics& g)
g.setColour(theme.foreground);
g.fillRect(footerBounds.toNearestInt());
g.setColour(theme.slate.withAlpha(0.2f));
g.drawVerticalLine(int(std::round(showFXButton.getX() - scalei(1.f))), footerBounds.getY() + scalei(13.f), footerBounds.getBottom() - scalei(13.f));
bool fxEnabled = eqEnabled || reverbEnabled || distortionEnabled || chorusEnabled;
if (fxEnabled)
{
auto fxBounds = showFXButton.getBounds().toFloat();
auto indictatorBounds = fxBounds.removeFromTop(scalei(17.f)).removeFromRight(scalei(17.f)).translated(scalei(12.f), scalei(6.f));
g.setColour(theme.highlight);
g.fillEllipse(indictatorBounds);
}
auto sampleLoaded = bool(p.getSampleBuffer().getNumSamples());
if (pluginState.showFX)
{
@ -704,17 +693,9 @@ void JustaSampleAudioProcessorEditor::resized()
footer.removeFromBottom(scalei(2.f));
footer.reduce(scalei(25.f), 0.f);
auto showFXButtonBounds = footer.removeFromRight(scalei(205.f));
showFXButton.setPadding(0.f, 0.f, scalei(19.f), scalei(19.f));
showFXButton.setBounds(showFXButtonBounds.toNearestInt());
footer.removeFromRight(scalei(30.f));
auto preFXButtonBounds = footer.removeFromRight(scalei(100.f)).reduced(0.f, scalei(11.f));
preFXButton.setBounds(preFXButtonBounds.toNearestInt());
preFXButton.setBorder(scalef(2.5f), scalef(6.f));
preFXButton.setPadding(scalef(11.f));
preFXButton.setVisible(false);
showFXButton.setVisible(false);
versionInfo.setFont(getInter().withHeight(scalef(28.f)));
versionInfo.setBounds(footer.reduced(0.f, scalei(18.f)).toNearestInt());