feat: removed check for macOS 10.14

This commit is contained in:
Serhiy Mytrovtsiy
2023-01-31 18:27:43 +01:00
parent 36d4aa5a88
commit 6c991de101
9 changed files with 39 additions and 184 deletions

View File

@@ -223,11 +223,7 @@ class WidgetSelectorView: NSStackView {
private var background: NSVisualEffectView = {
let view = NSVisualEffectView(frame: NSRect.zero)
view.blendingMode = .withinWindow
if #available(macOS 10.14, *) {
view.material = .contentBackground
} else {
view.material = .popover
}
view.material = .contentBackground
view.state = .active
view.wantsLayer = true
view.layer?.cornerRadius = 5