1
0
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:
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 {
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 {