diff options
author | der richter <der.richter@gmx.de> | 2019-04-14 15:07:56 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-07-21 18:13:07 +0300 |
commit | c540ac8485d132285071aa43a493c3829f4f0d5c (patch) | |
tree | 013b1eadb00ea569ea8bbdc01c1f0f22d99ebbd4 /video/out | |
parent | 850b3037323ad68012c1d0b59ec00f56a9d8c09b (diff) | |
download | mpv-c540ac8485d132285071aa43a493c3829f4f0d5c.tar.bz2 mpv-c540ac8485d132285071aa43a493c3829f4f0d5c.tar.xz |
cocoa-cb: conditional compilation for Dark Mode and Material features
Fixes #6621
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/cocoa-cb/title_bar.swift | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/video/out/cocoa-cb/title_bar.swift b/video/out/cocoa-cb/title_bar.swift index 596a13ba7b..f5979c71e9 100644 --- a/video/out/cocoa-cb/title_bar.swift +++ b/video/out/cocoa-cb/title_bar.swift @@ -214,6 +214,7 @@ class TitleBar: NSVisualEffectView { default: break } +#if HAVE_MACOS_10_11_FEATURES if #available(macOS 10.11, *) { switch string { case "2,", "menu": return .menu @@ -224,7 +225,8 @@ class TitleBar: NSVisualEffectView { default: break } } - +#endif +#if HAVE_MACOS_10_14_FEATURES if #available(macOS 10.14, *) { switch string { case "5,", "headerView": return .headerView @@ -239,6 +241,7 @@ class TitleBar: NSVisualEffectView { default: break } } +#endif return .titlebar } |