mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
21
Stats/Supporting Files/Assets.xcassets/devices/macPro.imageset/Contents.json
vendored
Normal file
21
Stats/Supporting Files/Assets.xcassets/devices/macPro.imageset/Contents.json
vendored
Normal 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
|
||||
}
|
||||
}
|
||||
BIN
Stats/Supporting Files/Assets.xcassets/devices/macPro.imageset/macPro.png
vendored
Normal file
BIN
Stats/Supporting Files/Assets.xcassets/devices/macPro.imageset/macPro.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user