fix: fixed user color for the CPU widget (#1429)

This commit is contained in:
Serhiy Mytrovtsiy
2023-04-22 15:46:41 +02:00
parent f176e494ad
commit 0cce45e854

View File

@@ -69,7 +69,7 @@ public class CPU: Module {
}
private var userColor: NSColor {
let color = Color.secondBlue
let key = Store.shared.string(key: "\(self.config.name)_systemColor", defaultValue: color.key)
let key = Store.shared.string(key: "\(self.config.name)_userColor", defaultValue: color.key)
if let c = Color.fromString(key).additional as? NSColor {
return c
}