diff --git a/osdep/macosx_application.h b/osdep/macosx_application.h index 753b9f033f..646cbc9b8a 100644 --- a/osdep/macosx_application.h +++ b/osdep/macosx_application.h @@ -33,7 +33,6 @@ enum { }; struct macos_opts { - int macos_title_bar_style; int macos_title_bar_appearance; int macos_title_bar_material; struct m_color macos_title_bar_color; diff --git a/video/out/mac/title_bar.swift b/video/out/mac/title_bar.swift index 764c1ff5dd..879ff9df10 100644 --- a/video/out/mac/title_bar.swift +++ b/video/out/mac/title_bar.swift @@ -195,10 +195,6 @@ class TitleBar: NSVisualEffectView { default: return nil } - - - let style = UserDefaults.standard.string(forKey: "AppleInterfaceStyle") - return appearanceFrom(string: style == nil ? "aqua" : "vibrantDark") } func materialFrom(string: String) -> NSVisualEffectView.Material { @@ -221,9 +217,7 @@ class TitleBar: NSVisualEffectView { case "15", "light": return .light case "16", "mediumLight": return .mediumLight case "17", "ultraDark": return .ultraDark - default: break + default: return .titlebar } - - return .titlebar } }