mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: removed check for macOS 10.14
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user