diff options
author | der richter <der.richter@gmx.de> | 2023-11-23 17:34:55 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2023-11-25 19:04:07 +0100 |
commit | 5aac4c1aee909ece346ba54b262cf915ca314483 (patch) | |
tree | 022f73a7dc01c03fe4541fd4c32faa62a06ad600 /video | |
parent | bdf4dca50508994284d4a80b08dd73d3a739e8f1 (diff) | |
download | mpv-5aac4c1aee909ece346ba54b262cf915ca314483.tar.bz2 mpv-5aac4c1aee909ece346ba54b262cf915ca314483.tar.xz |
mac: cleanup some unused and unneeded code
Diffstat (limited to 'video')
-rw-r--r-- | video/out/mac/title_bar.swift | 8 |
1 files changed, 1 insertions, 7 deletions
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 } } |