feat: added an Based on cluster colorize option. It will colorize efficiency and performance cores in the bar chart chart widget.

This commit is contained in:
Serhiy Mytrovtsiy
2022-08-12 18:56:43 +02:00
parent 900600ce7b
commit a2a4b93db4
8 changed files with 29 additions and 3 deletions

View File

@@ -120,6 +120,7 @@ public struct Color: KeyValue_p, Equatable {
extension Color: CaseIterable {
public static var utilization: Color { return Color(key: "utilization", value: "Based on utilization", additional: NSColor.black) }
public static var pressure: Color { return Color(key: "pressure", value: "Based on pressure", additional: NSColor.black) }
public static var cluster: Color { return Color(key: "cluster", value: "Based on cluster", additional: NSColor.black) }
public static var separator1: Color { return Color(key: "separator_1", value: "separator_1", additional: NSColor.black) }
@@ -160,7 +161,7 @@ extension Color: CaseIterable {
} }
public static var allCases: [Color] {
return [.utilization, .pressure, separator1,
return [.utilization, .pressure, .cluster, separator1,
.systemAccent, .monochrome, separator2,
.clear, .white, .black, .gray, .secondGray, .darkGray, .lightGray,
.red, .secondRed, .green, .secondGreen, .blue, .secondBlue, .yellow, .secondYellow,