mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: added cluster color to the list of all colors (#1154)
This commit is contained in:
@@ -17,7 +17,7 @@ public class BarChart: WidgetWrapper {
|
||||
private var frameState: Bool = false
|
||||
private var colorState: Color = .systemAccent
|
||||
|
||||
private var colors: [Color] = [Color.cluster] + Color.allCases
|
||||
private var colors: [Color] = Color.allCases
|
||||
private var value: [[ColorValue]] = [[]]
|
||||
private var pressureLevel: DispatchSource.MemoryPressureEvent = .normal
|
||||
private var colorZones: colorZones = (0.6, 0.8)
|
||||
@@ -330,6 +330,7 @@ public class BarChart: WidgetWrapper {
|
||||
self.colorState = newColor
|
||||
}
|
||||
|
||||
print(key)
|
||||
Store.shared.set(key: "\(self.title)_\(self.type.rawValue)_color", value: key)
|
||||
self.display()
|
||||
}
|
||||
|
||||
@@ -163,7 +163,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,
|
||||
|
||||
Reference in New Issue
Block a user