Skip to content

Commit

Permalink
Fixed lost margin (#313)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
FedorZaytsev and Fedor Zaitsev authored May 17, 2020
1 parent 1e1ae2a commit 2e2f556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MTMR/BasicView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2e2f556

Please sign in to comment.