mac: cleanup some unused and unneeded code

This commit is contained in:
der richter 2023-11-23 17:34:55 +01:00
parent bdf4dca505
commit 5aac4c1aee
2 changed files with 1 additions and 8 deletions

View File

@ -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;

View File

@ -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
}
}