From 5aac4c1aee909ece346ba54b262cf915ca314483 Mon Sep 17 00:00:00 2001 From: der richter Date: Thu, 23 Nov 2023 17:34:55 +0100 Subject: [PATCH] mac: cleanup some unused and unneeded code --- osdep/macosx_application.h | 1 - video/out/mac/title_bar.swift | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) 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 } }