Browse Source

macOS: Apply light appearance to NSViewComponentPeer on 10.14 to fix a bug when hosting Apple AUs

tags/2021-05-28
ed 7 years ago
parent
commit
1e1bb841a0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

+ 2
- 0
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm View File

@@ -122,6 +122,8 @@ public:
#if defined (MAC_OS_X_VERSION_10_14)
if (! [window isOpaque])
[window setBackgroundColor: [NSColor clearColor]];
[view setAppearance: [NSAppearance appearanceNamed: NSAppearanceNameAqua]];
#endif
[window setHasShadow: ((windowStyleFlags & windowHasDropShadow) != 0)];


Loading…
Cancel
Save