From c76027ca9d78a63d4b38e56ac8a51065ec9a75a2 Mon Sep 17 00:00:00 2001 From: ad Date: Fri, 27 Apr 2018 20:18:22 +0300 Subject: [PATCH] * fix for button.image size --- MTMR/TouchBarController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MTMR/TouchBarController.swift b/MTMR/TouchBarController.swift index e35a3b1..2a3a927 100644 --- a/MTMR/TouchBarController.swift +++ b/MTMR/TouchBarController.swift @@ -206,8 +206,8 @@ class TouchBarController: NSObject, NSTouchBarDelegate { } if case .image(let source)? = item.additionalParameters[.image], let item = barItem as? CustomButtonTouchBarItem { let button = item.button! + button.imageScaling = .scaleProportionallyDown button.cell?.image = source.image - button.cell?.image?.size = NSSize(width: 36, height: 36) button.bezelColor = .clear } return barItem