Browse Source

macOS: Removed an SDK version guard for setting transparent window colours in the native peer code

tags/2021-05-28
ed 6 years ago
parent
commit
65be5bc9c5
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

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

@@ -112,13 +112,11 @@ public:
[window setOpaque: component.isOpaque()];
#if defined (MAC_OS_X_VERSION_10_14) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14)
if (! [window isOpaque])
[window setBackgroundColor: [NSColor clearColor]];
#if defined (MAC_OS_X_VERSION_10_9) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9)
[view setAppearance: [NSAppearance appearanceNamed: NSAppearanceNameAqua]];
#endif
#if defined (MAC_OS_X_VERSION_10_9) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9)
[view setAppearance: [NSAppearance appearanceNamed: NSAppearanceNameAqua]];
#endif
[window setHasShadow: ((windowStyleFlags & windowHasDropShadow) != 0)];


Loading…
Cancel
Save