feat: add missing macPro icon (#329)

fix: fixed Intel Xeon name (#329)
This commit is contained in:
Serhiy Mytrovtsiy
2021-02-02 19:53:43 +01:00
parent c7476a7c40
commit 27dbac88cb
3 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "macPro.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: 10 KiB

View File

@@ -185,9 +185,9 @@ public class SystemKit {
name = name.replacingOccurrences(of: "(TM)", with: "")
name = name.replacingOccurrences(of: "(R)", with: "")
name = name.replacingOccurrences(of: "CPU", with: "")
name = name.replacingOccurrences(of: " @ ", with: "")
name = name.replacingOccurrences(of: "@", with: "")
cpu.name = name
cpu.name = name.condenseWhitespace()
}
var size = UInt32(MemoryLayout<host_basic_info_data_t>.size / MemoryLayout<integer_t>.size)
@@ -375,6 +375,9 @@ public class SystemKit {
case .imacpro:
icon = NSImage(named: NSImage.Name("imacPro"))!
break
case .macPro:
icon = NSImage(named: NSImage.Name("macPro"))!
break
case .imac:
icon = NSImage(named: NSImage.Name("imac"))!
break