mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: added a new MacBook Air and old MacBook Pro (14/16) icons
This commit is contained in:
@@ -506,9 +506,17 @@ public class SystemKit {
|
||||
}
|
||||
case .iMac:
|
||||
return NSImage(named: NSImage.Name("imac"))!
|
||||
case .macbook, .macbookAir:
|
||||
case .macbook:
|
||||
return NSImage(named: NSImage.Name("macbookAir"))!
|
||||
case .macbookAir:
|
||||
if year >= 2022 {
|
||||
return NSImage(named: NSImage.Name("macbookAir"))!
|
||||
}
|
||||
return NSImage(named: NSImage.Name("macbookAir4thGen"))!
|
||||
case .macbookPro:
|
||||
if year >= 2021 {
|
||||
return NSImage(named: NSImage.Name("macbookPro5thGen"))!
|
||||
}
|
||||
return NSImage(named: NSImage.Name("macbookPro"))!
|
||||
default:
|
||||
return NSImage(named: NSImage.Name("imacPro"))!
|
||||
|
||||
Reference in New Issue
Block a user