summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2023-11-23 17:34:55 +0100
committerder richter <der.richter@gmx.de>2023-11-25 19:04:07 +0100
commit5aac4c1aee909ece346ba54b262cf915ca314483 (patch)
tree022f73a7dc01c03fe4541fd4c32faa62a06ad600
parentbdf4dca50508994284d4a80b08dd73d3a739e8f1 (diff)
downloadmpv-5aac4c1aee909ece346ba54b262cf915ca314483.tar.bz2
mpv-5aac4c1aee909ece346ba54b262cf915ca314483.tar.xz
mac: cleanup some unused and unneeded code
-rw-r--r--osdep/macosx_application.h1
-rw-r--r--video/out/mac/title_bar.swift8
2 files changed, 1 insertions, 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
}
}