|
@@ -1080,16 +1080,16 @@ class ViewController: NSViewController {
|
|
|
button.focusRingType = .none
|
|
button.focusRingType = .none
|
|
|
button.wantsLayer = true
|
|
button.wantsLayer = true
|
|
|
button.layer?.backgroundColor = accentBlue.cgColor
|
|
button.layer?.backgroundColor = accentBlue.cgColor
|
|
|
- button.layer?.cornerRadius = 17
|
|
|
|
|
- let font = NSFont.systemFont(ofSize: 13, weight: .semibold)
|
|
|
|
|
|
|
+ button.layer?.cornerRadius = 14
|
|
|
|
|
+ let font = NSFont.systemFont(ofSize: 11, weight: .semibold)
|
|
|
button.attributedTitle = NSAttributedString(string: title, attributes: [
|
|
button.attributedTitle = NSAttributedString(string: title, attributes: [
|
|
|
.foregroundColor: NSColor.white,
|
|
.foregroundColor: NSColor.white,
|
|
|
.font: font
|
|
.font: font
|
|
|
])
|
|
])
|
|
|
button.toolTip = title
|
|
button.toolTip = title
|
|
|
button.translatesAutoresizingMaskIntoConstraints = false
|
|
button.translatesAutoresizingMaskIntoConstraints = false
|
|
|
- button.heightAnchor.constraint(equalToConstant: 34).isActive = true
|
|
|
|
|
- button.widthAnchor.constraint(greaterThanOrEqualToConstant: 152).isActive = true
|
|
|
|
|
|
|
+ button.heightAnchor.constraint(equalToConstant: 28).isActive = true
|
|
|
|
|
+ button.widthAnchor.constraint(greaterThanOrEqualToConstant: 124).isActive = true
|
|
|
return button
|
|
return button
|
|
|
}
|
|
}
|
|
|
|
|
|