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"))!
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 47 KiB |
21
Stats/Supporting Files/Assets.xcassets/devices/macbookAir4thGen.imageset/Contents.json
vendored
Normal file
21
Stats/Supporting Files/Assets.xcassets/devices/macbookAir4thGen.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "macbookAir.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
BIN
Stats/Supporting Files/Assets.xcassets/devices/macbookAir4thGen.imageset/macbookAir.png
vendored
Normal file
BIN
Stats/Supporting Files/Assets.xcassets/devices/macbookAir4thGen.imageset/macbookAir.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
21
Stats/Supporting Files/Assets.xcassets/devices/macbookPro5thGen.imageset/Contents.json
vendored
Normal file
21
Stats/Supporting Files/Assets.xcassets/devices/macbookPro5thGen.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "macbookPro.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
BIN
Stats/Supporting Files/Assets.xcassets/devices/macbookPro5thGen.imageset/macbookPro.png
vendored
Normal file
BIN
Stats/Supporting Files/Assets.xcassets/devices/macbookPro5thGen.imageset/macbookPro.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
Reference in New Issue
Block a user