mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: fixed border radius of widget selector container
This commit is contained in:
@@ -207,6 +207,8 @@ class WidgetSelectorView: NSStackView {
|
||||
view.material = .popover
|
||||
}
|
||||
view.state = .active
|
||||
view.wantsLayer = true
|
||||
view.layer?.cornerRadius = 5
|
||||
return view
|
||||
}()
|
||||
|
||||
@@ -217,8 +219,6 @@ class WidgetSelectorView: NSStackView {
|
||||
super.init(frame: NSRect.zero)
|
||||
|
||||
self.translatesAutoresizingMaskIntoConstraints = false
|
||||
self.wantsLayer = true
|
||||
self.layer?.cornerRadius = 3
|
||||
self.edgeInsets = NSEdgeInsets(
|
||||
top: Constants.Settings.margin,
|
||||
left: Constants.Settings.margin,
|
||||
|
||||
Reference in New Issue
Block a user