diff --git a/Source/PluginGui.cpp b/Source/PluginGui.cpp index d670fd7..b534ad4 100644 --- a/Source/PluginGui.cpp +++ b/Source/PluginGui.cpp @@ -1157,9 +1157,9 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) exportButton->addListener (this); exportButton->setColour (TextButton::buttonColourId, Colour (0xff007f00)); exportButton->setColour (TextButton::buttonOnColourId, Colours::lime); - +#if!JUCE_IOS exportButton->setBounds (728, 512, 96, 24); - +#endif loadButton.reset (new TextButton ("load button")); addAndMakeVisible (loadButton.get()); loadButton->setButtonText (TRANS("Load")); diff --git a/Source/PluginGui.h b/Source/PluginGui.h index 533a2f4..dafaa01 100644 --- a/Source/PluginGui.h +++ b/Source/PluginGui.h @@ -130,21 +130,21 @@ public: private: //[UserVariables] -- You can add your own custom variables in this section. - class OPLComboBoxLookAndFeelMethods: - public LookAndFeel_V3 - { - virtual PopupMenu::Options getOptionsForComboBoxPopupMenu (ComboBox& comBox, Label& label) override{ - PopupMenu::Options options = LookAndFeel_V3::getOptionsForComboBoxPopupMenu(comBox, label); - #if JUCE_IOS - if (PluginHostType::getPluginLoadedAs() == AudioProcessor::wrapperType_AudioUnitv3) - { - if (options.getTargetComponent() != nullptr) - return options.withParentComponent(options.getTargetComponent()->getTopLevelComponent()); - } - #endif - return options; - }; +class OPLComboBoxLookAndFeelMethods: + public OPLLookAndFeel +{ + virtual PopupMenu::Options getOptionsForComboBoxPopupMenu (ComboBox& comBox, Label& label) override{ + PopupMenu::Options options = OPLLookAndFeel::getOptionsForComboBoxPopupMenu(comBox, label); +#if JUCE_IOS + if (PluginHostType::getPluginLoadedAs() == AudioProcessor::wrapperType_AudioUnitv3) + { + if (options.getTargetComponent() != nullptr) + return options.withParentComponent(options.getTargetComponent()->getTopLevelComponent()); + } +#endif +return options; }; +}; std::unique_ptr oplComboBoxLookAndFeel;