mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: prepare to support macOS 10.13
This commit is contained in:
@@ -241,7 +241,9 @@ internal class HeaderView: NSStackView {
|
||||
activity.translatesAutoresizingMaskIntoConstraints = false
|
||||
activity.imageScaling = .scaleNone
|
||||
activity.image = Bundle(for: type(of: self)).image(forResource: "chart")!
|
||||
activity.contentTintColor = .lightGray
|
||||
if #available(OSX 10.14, *) {
|
||||
activity.contentTintColor = .lightGray
|
||||
}
|
||||
activity.isBordered = false
|
||||
activity.action = #selector(openActivityMonitor)
|
||||
activity.target = self
|
||||
@@ -269,7 +271,9 @@ internal class HeaderView: NSStackView {
|
||||
settings.translatesAutoresizingMaskIntoConstraints = false
|
||||
settings.imageScaling = .scaleNone
|
||||
settings.image = Bundle(for: type(of: self)).image(forResource: "settings")!
|
||||
settings.contentTintColor = .lightGray
|
||||
if #available(OSX 10.14, *) {
|
||||
settings.contentTintColor = .lightGray
|
||||
}
|
||||
settings.isBordered = false
|
||||
settings.action = #selector(openSettings)
|
||||
settings.target = self
|
||||
|
||||
Reference in New Issue
Block a user