mirror of https://github.com/mpv-player/mpv
mac: cleanup some unused and unneeded code
This commit is contained in:
parent
bdf4dca505
commit
5aac4c1aee
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
return .titlebar
|
||||
default: return .titlebar
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue