# ComboBox colour alpha error on Apple Silicon Logic Pro

**URL:** <https://forum.juce.com/t/combobox-colour-alpha-error-on-apple-silicon-logic-pro/56375>\
**Category:** Audio Plugins\
**Created:** [May 24, 2023, 4:09pm UTC](https://forum.juce.com/t/combobox-colour-alpha-error-on-apple-silicon-logic-pro/56375 "2023-05-24T16:09:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![geliang87](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/geliang87/32/7861_2.png) [@geliang87](https://forum.juce.com/u/geliang87)\
**Post date:** [May 24, 2023, 4:09pm UTC](https://forum.juce.com/t/combobox-colour-alpha-error-on-apple-silicon-logic-pro/56375/1 "2023-05-24T16:09:17Z")

</div>

Hi JUCE folks,

I encountered a problem related to colour alpha setting only found on M1 Logic Pro. Basically I made a few ComboBox components in my plugin. I set the popup menu background colour to black with alpha 0.2 by

> myLookAndFeel.setColour (PopupMenu::ColourIds::backgroundColourId, Colours::black.withAlpha (0.2f));

The ComboBox components look weird in Logic Pro on my Mac M1 computer, as shown here:  
 ![Screenshot 2023-05-24 at 23.51.24](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/4/45b2d0296b99ec1ac604d5921055e2f1e1315f56.png)

I should mention the colour with alpha looks fine in Reaper as AU plugin on Mac M1. I also tried Logic Pro on an Mac Intel computer where I found no problem.

Is it a bug with Apple Silicon Logic Pro? Or can I find some workaround with JUCE?

Thanks,  
Liang

---

<div class="post-metadata">

**Author:** ![asimilon](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/asimilon/32/4235_2.png) [@asimilon](https://forum.juce.com/u/asimilon)\
**Post date:** [May 24, 2023, 4:56pm UTC](https://forum.juce.com/t/combobox-colour-alpha-error-on-apple-silicon-logic-pro/56375/2 "2023-05-24T16:56:55Z")

</div>

I think you will need to override `ComboBox::showPopUp` and then use `getRootMenu` and then show the `PopupMenu` with some options that set `.withParentComponent(Component*)`.

There are a bunch of other similar threads about this, Apple decided that popover windows will have a purple background, I think as a security measure to stop a malicious software overlaying something with 0% opacity and stealing key presses or whatever.

Adding the `PopupMenu`s to the main window component hierarchy solves this.

---

<div class="post-metadata">

**Author:** ![geliang87](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/geliang87/32/7861_2.png) [@geliang87](https://forum.juce.com/u/geliang87)\
**Post date:** [May 25, 2023, 1:37am UTC](https://forum.juce.com/t/combobox-colour-alpha-error-on-apple-silicon-logic-pro/56375/3 "2023-05-25T01:37:44Z")

</div>

Thanks man. By further reading PopupMenu docs, like you said it explained how the problem occurs in withParentComponent method ([PopupMenu::Options::withParentComponent](https://docs.juce.com/master/classPopupMenu_1_1Options.html#ac7a93f4c8c44268cf8f4f6205186456e)).
