mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-11 17:38:38 +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 {
|
if case .bordered(let bordered)? = item.additionalParameters[.bordered], let item = barItem as? CustomButtonTouchBarItem {
|
||||||
item.button.isBordered = bordered
|
item.button.isBordered = bordered
|
||||||
if bordered {
|
item.button.bezelStyle = bordered ? .rounded : .inline
|
||||||
item.button.bezelStyle = .rounded
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if case .background(let color)? = item.additionalParameters[.background], let item = barItem as? CustomButtonTouchBarItem {
|
if case .background(let color)? = item.additionalParameters[.background], let item = barItem as? CustomButtonTouchBarItem {
|
||||||
if item.button.cell?.isBordered == false {
|
if item.button.cell?.isBordered == false {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user