mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-10 17:08:39 +00:00
fix margin for some buttons
This commit is contained in:
parent
453895f395
commit
cd69bc341c
@ -213,9 +213,7 @@ class TouchBarController: NSObject, NSTouchBarDelegate {
|
||||
}
|
||||
if case .bordered(let bordered)? = item.additionalParameters[.bordered], let item = barItem as? CustomButtonTouchBarItem {
|
||||
item.button.isBordered = bordered
|
||||
if bordered {
|
||||
item.button.bezelStyle = .rounded
|
||||
}
|
||||
item.button.bezelStyle = bordered ? .rounded : .inline
|
||||
}
|
||||
if case .background(let color)? = item.additionalParameters[.background], let item = barItem as? CustomButtonTouchBarItem {
|
||||
if item.button.cell?.isBordered == false {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user