[vlc-commits] macOS: Use dark appearance for panel modals
Marvin Scholz
git at videolan.org
Sat Jun 24 12:37:08 CEST 2017
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sat Jun 24 12:34:28 2017 +0200| [40f745dea2a4999c898b3d36f074da1a85b63f61] | committer: Marvin Scholz
macOS: Use dark appearance for panel modals
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=40f745dea2a4999c898b3d36f074da1a85b63f61
---
modules/gui/macosx/VLCVideoEffectsWindowController.m | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/modules/gui/macosx/VLCVideoEffectsWindowController.m b/modules/gui/macosx/VLCVideoEffectsWindowController.m
index af2b337c3c..a95e28f209 100644
--- a/modules/gui/macosx/VLCVideoEffectsWindowController.m
+++ b/modules/gui/macosx/VLCVideoEffectsWindowController.m
@@ -670,6 +670,14 @@
- (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")];
@@ -728,6 +736,14 @@
- (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")];
More information about the vlc-commits
mailing list