2
0
Fork 0

iOS Build Fixes

This commit is contained in:
George Reales 2020-06-06 20:12:03 +02:00
parent 661057525f
commit 0b72de6b36
2 changed files with 16 additions and 16 deletions

View File

@ -1157,9 +1157,9 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter)
exportButton->addListener (this); exportButton->addListener (this);
exportButton->setColour (TextButton::buttonColourId, Colour (0xff007f00)); exportButton->setColour (TextButton::buttonColourId, Colour (0xff007f00));
exportButton->setColour (TextButton::buttonOnColourId, Colours::lime); exportButton->setColour (TextButton::buttonOnColourId, Colours::lime);
#if!JUCE_IOS
exportButton->setBounds (728, 512, 96, 24); exportButton->setBounds (728, 512, 96, 24);
#endif
loadButton.reset (new TextButton ("load button")); loadButton.reset (new TextButton ("load button"));
addAndMakeVisible (loadButton.get()); addAndMakeVisible (loadButton.get());
loadButton->setButtonText (TRANS("Load")); loadButton->setButtonText (TRANS("Load"));

View File

@ -130,21 +130,21 @@ public:
private: private:
//[UserVariables] -- You can add your own custom variables in this section. //[UserVariables] -- You can add your own custom variables in this section.
class OPLComboBoxLookAndFeelMethods: class OPLComboBoxLookAndFeelMethods:
public LookAndFeel_V3 public OPLLookAndFeel
{ {
virtual PopupMenu::Options getOptionsForComboBoxPopupMenu (ComboBox& comBox, Label& label) override{ virtual PopupMenu::Options getOptionsForComboBoxPopupMenu (ComboBox& comBox, Label& label) override{
PopupMenu::Options options = LookAndFeel_V3::getOptionsForComboBoxPopupMenu(comBox, label); PopupMenu::Options options = OPLLookAndFeel::getOptionsForComboBoxPopupMenu(comBox, label);
#if JUCE_IOS #if JUCE_IOS
if (PluginHostType::getPluginLoadedAs() == AudioProcessor::wrapperType_AudioUnitv3) if (PluginHostType::getPluginLoadedAs() == AudioProcessor::wrapperType_AudioUnitv3)
{ {
if (options.getTargetComponent() != nullptr) if (options.getTargetComponent() != nullptr)
return options.withParentComponent(options.getTargetComponent()->getTopLevelComponent()); return options.withParentComponent(options.getTargetComponent()->getTopLevelComponent());
} }
#endif #endif
return options; return options;
};
}; };
};
std::unique_ptr<OPLComboBoxLookAndFeelMethods> oplComboBoxLookAndFeel; std::unique_ptr<OPLComboBoxLookAndFeelMethods> oplComboBoxLookAndFeel;