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 <lobster@Fedors-MacBook-Pro.local>
This commit is contained in:
Fedor Zaitsev
2020-05-17 13:39:21 +01:00
committed by GitHub
co-authored by Fedor Zaitsev
parent 1e1ae2af61
commit 2e2f556daf
+1 -1
View File
@@ -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