1
0
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:
Serg 2018-04-30 22:54:15 +07:00
parent 453895f395
commit cd69bc341c

View File

@ -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 {