iOS build fixes
This commit is contained in:
parent
7867b6eaf9
commit
2357e0a3cf
2 changed files with 25 additions and 1 deletions
|
@ -2196,6 +2196,12 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter)
|
||||||
#endif
|
#endif
|
||||||
, NotificationType::dontSendNotification);
|
, NotificationType::dontSendNotification);
|
||||||
|
|
||||||
|
// Change LookandFeelFree combobox
|
||||||
|
oplComboBoxLookAndFeel.reset(new OPLComboBoxLookAndFeelMethods());
|
||||||
|
|
||||||
|
for (auto comB : {frequencyComboBox.get(), frequencyComboBox2.get(), velocityComboBox.get(), velocityComboBox2.get(), keyscaleAttenuationComboBox2.get(), keyscaleAttenuationComboBox.get()}){
|
||||||
|
comB->setLookAndFeel(oplComboBoxLookAndFeel.get());
|
||||||
|
}
|
||||||
//[/UserPreSize]
|
//[/UserPreSize]
|
||||||
|
|
||||||
setSize (860, 580);
|
setSize (860, 580);
|
||||||
|
|
|
@ -130,6 +130,24 @@ 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:
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
std::unique_ptr<OPLComboBoxLookAndFeelMethods> oplComboBoxLookAndFeel;
|
||||||
|
|
||||||
static const uint32 COLOUR_MID = 0xff007f00;
|
static const uint32 COLOUR_MID = 0xff007f00;
|
||||||
static const uint32 COLOUR_RECORDING = 0xffff0000;
|
static const uint32 COLOUR_RECORDING = 0xffff0000;
|
||||||
AdlibBlasterAudioProcessor* processor;
|
AdlibBlasterAudioProcessor* processor;
|
||||||
|
|
Loading…
Reference in a new issue