feat: prepare to support macOS 10.13

This commit is contained in:
Serhiy Mytrovtsiy
2021-07-07 19:15:47 +02:00
parent 08d8d84ceb
commit 178b713353
12 changed files with 45 additions and 19 deletions

View File

@@ -371,7 +371,9 @@ internal class WidgetPreview: NSStackView {
button.image = image
}
button.imageScaling = .scaleProportionallyDown
button.contentTintColor = .lightGray
if #available(OSX 10.14, *) {
button.contentTintColor = .lightGray
}
button.isBordered = false
button.action = #selector(self.toggleSettings)
button.target = self