iOS Build Fixes
This commit is contained in:
parent
661057525f
commit
0b72de6b36
2 changed files with 16 additions and 16 deletions
|
@ -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"));
|
||||
|
|
|
@ -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<OPLComboBoxLookAndFeelMethods> oplComboBoxLookAndFeel;
|
||||
|
||||
|
|
Loading…
Reference in a new issue