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->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"));

View file

@ -130,21 +130,21 @@ public:
private:
//[UserVariables] -- You can add your own custom variables in this section.
class OPLComboBoxLookAndFeelMethods:
public LookAndFeel_V3
{
class OPLComboBoxLookAndFeelMethods:
public OPLLookAndFeel
{
virtual PopupMenu::Options getOptionsForComboBoxPopupMenu (ComboBox& comBox, Label& label) override{
PopupMenu::Options options = LookAndFeel_V3::getOptionsForComboBoxPopupMenu(comBox, label);
#if JUCE_IOS
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;
};
#endif
return options;
};
};
std::unique_ptr<OPLComboBoxLookAndFeelMethods> oplComboBoxLookAndFeel;