Update juce_StandaloneFilterWindow.h
This commit is contained in:
parent
8e6d1ac29a
commit
561b9bc6c1
1 changed files with 16 additions and 3 deletions
|
@ -576,7 +576,14 @@ public:
|
||||||
bool autoOpenMidiDevices = false
|
bool autoOpenMidiDevices = false
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
|
#if JUCE_MAC
|
||||||
: DocumentWindow ("", backgroundColour, DocumentWindow::minimiseButton | DocumentWindow::closeButton),
|
: DocumentWindow ("", backgroundColour, DocumentWindow::minimiseButton | DocumentWindow::closeButton),
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if ! JUCE_MAC
|
||||||
|
: DocumentWindow (title, Colour::fromHSV (0.0f, 0.0f, 0.1f, 0.5f), DocumentWindow::minimiseButton | DocumentWindow::closeButton),
|
||||||
|
#endif
|
||||||
|
|
||||||
menuBar(this)
|
menuBar(this)
|
||||||
#if ! JUCE_MAC
|
#if ! JUCE_MAC
|
||||||
, optionsButton ("Settings")
|
, optionsButton ("Settings")
|
||||||
|
@ -585,10 +592,16 @@ public:
|
||||||
#if JUCE_IOS || JUCE_ANDROID
|
#if JUCE_IOS || JUCE_ANDROID
|
||||||
setTitleBarHeight (0);
|
setTitleBarHeight (0);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
LookAndFeel_V4 *lfv4 = dynamic_cast<LookAndFeel_V4*>(&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);
|
setTitleBarButtonsRequired (DocumentWindow::minimiseButton | DocumentWindow::closeButton, false);
|
||||||
|
|
||||||
#if JUCE_MAC
|
#if JUCE_MAC
|
||||||
setUsingNativeTitleBar(true);
|
setUsingNativeTitleBar(false);
|
||||||
menu.addItem (1, TRANS("Audio/MIDI Settings..."));
|
menu.addItem (1, TRANS("Audio/MIDI Settings..."));
|
||||||
MenuBarModel::setMacMainMenu (this, &menu);
|
MenuBarModel::setMacMainMenu (this, &menu);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue