macOS: Use dark appearance for panel modals
[vlc.git] / modules / gui / macosx / VLCVideoEffectsWindowController.m
index af2b337..a95e28f 100644 (file)
 - (void)addProfile:(id)sender
 {
     /* show panel */
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wpartial-availability"
+#ifdef MAC_OS_X_VERSION_10_10
+    if (OSX_YOSEMITE_AND_HIGHER) {
+        [[_textfieldPanel window] setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameVibrantDark]];
+    }
+#endif
+#pragma clang diagnostic pop
     [_textfieldPanel setTitleString:_NS("Duplicate current profile for a new profile")];
     [_textfieldPanel setSubTitleString:_NS("Enter a name for the new profile:")];
     [_textfieldPanel setCancelButtonString:_NS("Cancel")];
 - (void)removeProfile:(id)sender
 {
     /* show panel */
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wpartial-availability"
+#ifdef MAC_OS_X_VERSION_10_10
+    if (OSX_YOSEMITE_AND_HIGHER) {
+        [[_popupPanel window] setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameVibrantDark]];
+    }
+#endif
+#pragma clang diagnostic pop
     [_popupPanel setTitleString:_NS("Remove a preset")];
     [_popupPanel setSubTitleString:_NS("Select the preset you would like to remove:")];
     [_popupPanel setOkButtonString:_NS("Remove")];