From 561b9bc6c13dd53392cb24d12d0b384433df38ec Mon Sep 17 00:00:00 2001 From: George Reales Date: Wed, 12 May 2021 20:40:48 +0200 Subject: [PATCH] Update juce_StandaloneFilterWindow.h --- .../Standalone/juce_StandaloneFilterWindow.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h b/Modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h index 323bf07..396ce7c 100644 --- a/Modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h +++ b/Modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h @@ -576,8 +576,15 @@ public: bool autoOpenMidiDevices = false #endif ) +#if JUCE_MAC : DocumentWindow ("", backgroundColour, DocumentWindow::minimiseButton | DocumentWindow::closeButton), - menuBar(this) +#endif + +#if ! JUCE_MAC + : DocumentWindow (title, Colour::fromHSV (0.0f, 0.0f, 0.1f, 0.5f), DocumentWindow::minimiseButton | DocumentWindow::closeButton), +#endif + + menuBar(this) #if ! JUCE_MAC , optionsButton ("Settings") #endif @@ -585,10 +592,16 @@ public: #if JUCE_IOS || JUCE_ANDROID setTitleBarHeight (0); #else + + LookAndFeel_V4 *lfv4 = dynamic_cast(&getLookAndFeel()); +if (lfv4) { +lfv4->getCurrentColourScheme().setUIColour (LookAndFeel_V4::ColourScheme::widgetBackground, Colour::fromHSV (0.0f, 0.0f, 0.1f, 1.0f)); +} + setTitleBarButtonsRequired (DocumentWindow::minimiseButton | DocumentWindow::closeButton, false); - + #if JUCE_MAC - setUsingNativeTitleBar(true); + setUsingNativeTitleBar(false); menu.addItem (1, TRANS("Audio/MIDI Settings...")); MenuBarModel::setMacMainMenu (this, &menu); #else