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:
@@ -1005,12 +1005,8 @@ private class ModeButtons: NSStackView {
|
||||
var turboIcon: NSImage = NSImage(named: NSImage.Name("ac_unit"))!
|
||||
var offIcon: NSImage = NSImage(named: NSImage.Name("ac_unit"))!
|
||||
if #available(macOS 12.0, *) {
|
||||
if let icon = iconFromSymbol(name: "snowflake", scale: .large) {
|
||||
turboIcon = icon
|
||||
}
|
||||
if let icon = iconFromSymbol(name: "fanblades.slash", scale: .medium) {
|
||||
offIcon = icon
|
||||
}
|
||||
turboIcon = iconFromSymbol(name: "snowflake", scale: .large)
|
||||
offIcon = iconFromSymbol(name: "fanblades.slash", scale: .medium)
|
||||
}
|
||||
|
||||
self.offBtn = NSButton(image: offIcon, target: nil, action: #selector(offMode))
|
||||
|
||||
Reference in New Issue
Block a user