From 2e2f556daf45f3ca8187930c94b04c1941210c94 Mon Sep 17 00:00:00 2001 From: Fedor Zaitsev Date: Sun, 17 May 2020 05:39:21 -0700 Subject: [PATCH] Fixed lost margin (#313) * Updated README Added explanation for missing parameters (background, title and image) * Implemented changable icons for AppleScriptTouchBarItem AppleScriptTouchBarItem now allow to specify any number of icons which can be changed from the script. You cannot change icon from touch event. To change icon, you need to return array from your script with 2 values - title and icn name. More info in readme * Fixed #312 Fixed bug that margin is lost on all elements Co-authored-by: Fedor Zaitsev --- MTMR/BasicView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MTMR/BasicView.swift b/MTMR/BasicView.swift index ce30af8..c0d3f70 100644 --- a/MTMR/BasicView.swift +++ b/MTMR/BasicView.swift @@ -26,7 +26,7 @@ class BasicView: NSCustomTouchBarItem, NSGestureRecognizerDelegate { self.swipeItems = swipeItems let views = items.compactMap { $0.view } let stackView = NSStackView(views: views) - stackView.spacing = 1 + stackView.spacing = 8 stackView.orientation = .horizontal view = stackView