设置NSApp的Appearance: NSApp.appearance = NSAppearance(named: .darkAqua) 0x05: Visual Effect View 关于NSVisualEffectView 的Appearance适配,苹果官方建议采用根据使用明确场景语义枚举.例如在一个popOver的窗口中,推荐使用NSVisualEffectView.Material.popover,这样系统就根据appearance 变化自动选择合适的效果了.同时系统也废弃了如下的枚举: NSVisualEffectView.Material.light Deprecated NSVisualEffectView.Material.dark Deprecated NSVisualEffectView.Material.mediumLight Deprecated NSVisualEffectView.Material.ultraDark
lightContent: NSAppearance.Name /* The following two Vibrant appearances should only be set on an NSVisualEffectView