1

我正在尝试将 SF 符号添加到按钮。我发现我可以改变它的 pointSize、weight 和 scale 或者它的 tint。

但我不知道如何实现这两种定制。

self.Button = makeToolBarButton(buttonTitle: "plus", buttonFont: NSFont.systemFont(ofSize: buttonSize), image: NSImage(named: "plus.circle.filled")?.withSymbolConfiguration(.init(pointSize: 15, weight: .bold, scale:.large)), { button in 
button.params["actionType"] = ButtonType.image
}
4

0 回答 0