mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: adjusted switch view height
This commit is contained in:
@@ -304,6 +304,7 @@ public extension NSView {
|
||||
|
||||
func switchView(action: Selector, state: Bool) -> NSSwitch {
|
||||
let s = NSSwitch()
|
||||
s.heightAnchor.constraint(equalToConstant: 25).isActive = true
|
||||
s.controlSize = .mini
|
||||
s.state = state ? .on : .off
|
||||
s.action = action
|
||||
|
||||
Reference in New Issue
Block a user