1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-11 17:38:38 +00:00

* fix for button.image size

This commit is contained in:
ad 2018-04-27 20:18:22 +03:00
parent 55dc551516
commit c76027ca9d

View File

@ -206,8 +206,8 @@ class TouchBarController: NSObject, NSTouchBarDelegate {
} }
if case .image(let source)? = item.additionalParameters[.image], let item = barItem as? CustomButtonTouchBarItem { if case .image(let source)? = item.additionalParameters[.image], let item = barItem as? CustomButtonTouchBarItem {
let button = item.button! let button = item.button!
button.imageScaling = .scaleProportionallyDown
button.cell?.image = source.image button.cell?.image = source.image
button.cell?.image?.size = NSSize(width: 36, height: 36)
button.bezelColor = .clear button.bezelColor = .clear
} }
return barItem return barItem