mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: changed minimum macOS version to macOS 11.15 (Big Sur)
This commit is contained in:
@@ -28,10 +28,10 @@ public struct module_c {
|
||||
if let state = dict["State"] as? Bool {
|
||||
self.defaultState = state
|
||||
}
|
||||
if let symbol = dict["Symbol"] as? String, #available(macOS 11.0, *) {
|
||||
if let symbol = dict["Symbol"] as? String {
|
||||
self.icon = NSImage(systemSymbolName: symbol, accessibilityDescription: nil)
|
||||
}
|
||||
if self.icon == nil, #available(macOS 11.0, *), let symbol = dict["AlternativeSymbol"] as? String {
|
||||
if self.icon == nil, let symbol = dict["AlternativeSymbol"] as? String {
|
||||
self.icon = NSImage(systemSymbolName: symbol, accessibilityDescription: nil)
|
||||
}
|
||||
|
||||
|
||||
@@ -678,18 +678,8 @@ private class ButtonSelectorView: NSStackView {
|
||||
return view
|
||||
}()
|
||||
|
||||
private var settingsIcon: NSImage {
|
||||
if #available(macOS 12.0, *), let icon = iconFromSymbol(name: "gear", scale: .large) {
|
||||
return icon
|
||||
}
|
||||
return NSImage(named: NSImage.Name("settings"))!
|
||||
}
|
||||
private var previewIcon: NSImage {
|
||||
if #available(macOS 12.0, *), let icon = iconFromSymbol(name: "command", scale: .large) {
|
||||
return icon
|
||||
}
|
||||
return NSImage(named: NSImage.Name("chart"))!
|
||||
}
|
||||
private var settingsIcon: NSImage { iconFromSymbol(name: "gear", scale: .large) }
|
||||
private var previewIcon: NSImage { iconFromSymbol(name: "command", scale: .large) }
|
||||
|
||||
private var button: NSButton? = nil
|
||||
private var isSettingsEnabled: Bool = false
|
||||
|
||||
Reference in New Issue
Block a user