diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index d77af7e4..102a6174 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -113,11 +113,16 @@ OscirenderAudioProcessorEditor::OscirenderAudioProcessorEditor(OscirenderAudioPr }; visualiserSettingsWindow.setResizable(false, false); +#if JUCE_WINDOWS + // if not standalone, use native title bar for compatibility with DAWs + visualiserSettingsWindow.setUsingNativeTitleBar(processor.wrapperType == juce::AudioProcessor::WrapperType::wrapperType_Standalone); +#elif JUCE_MAC visualiserSettingsWindow.setUsingNativeTitleBar(true); +#endif visualiserSettings.setLookAndFeel(&getLookAndFeel()); - visualiserSettings.setSize(550, 260); + visualiserSettings.setSize(550, 280); visualiserSettingsWindow.setContentNonOwned(&visualiserSettings, true); - visualiserSettingsWindow.centreWithSize(550, 260); + visualiserSettingsWindow.centreWithSize(550, 280); tooltipDropShadow.setOwner(&tooltipWindow); } diff --git a/Source/components/MainMenuBarModel.cpp b/Source/components/MainMenuBarModel.cpp index c67bee8e..b3db053f 100644 --- a/Source/components/MainMenuBarModel.cpp +++ b/Source/components/MainMenuBarModel.cpp @@ -74,11 +74,16 @@ void MainMenuBarModel::menuItemSelected(int menuItemID, int topLevelMenuIndex) { juce::DialogWindow::LaunchOptions options; AboutComponent* about = new AboutComponent(); options.content.setOwned(about); - options.content->setSize(500, 250); + options.content->setSize(500, 270); options.dialogTitle = "About"; options.dialogBackgroundColour = Colours::dark; options.escapeKeyTriggersCloseButton = true; +#if JUCE_WINDOWS + // if not standalone, use native title bar for compatibility with DAWs + options.useNativeTitleBar = editor.processor.wrapperType == juce::AudioProcessor::WrapperType::wrapperType_Standalone; +#elif JUCE_MAC options.useNativeTitleBar = true; +#endif options.resizable = false; juce::DialogWindow* dw = options.launchAsync();