feat: added a new MacBook Air and old MacBook Pro (14/16) icons

This commit is contained in:
Serhiy Mytrovtsiy
2023-02-03 18:34:11 +01:00
parent fa8a4d8d21
commit 6d136b6d13
6 changed files with 51 additions and 1 deletions

View File

@@ -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

View 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
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View 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
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB