fix: fixed wrong ram pressure levels colorizing. Moved from int to the internal levels variable (DispatchSource.MemoryPressureEvent) (#1010)

This commit is contained in:
Serhiy Mytrovtsiy
2022-07-26 18:00:59 +02:00
parent 20fca8c77a
commit 64fffc07e8
7 changed files with 18 additions and 18 deletions

View File

@@ -107,14 +107,14 @@ extension String: LocalizedError {
}
}
public extension Int {
public extension DispatchSource.MemoryPressureEvent {
func pressureColor() -> NSColor {
switch self {
case 1:
case .normal:
return NSColor.systemGreen
case 2:
case .warning:
return NSColor.systemYellow
case 3:
case .critical:
return NSColor.systemRed
default:
return controlAccentColor