feat: moved from the HEX colors to the RGB

This commit is contained in:
Serhiy Mytrovtsiy
2023-06-20 16:51:19 +02:00
parent 9e2517dcbb
commit ff6b0ed865
8 changed files with 8 additions and 26 deletions

View File

@@ -100,7 +100,7 @@ internal class BLEView: NSStackView {
}
override func updateLayer() {
self.layer?.backgroundColor = isDarkMode ? NSColor(hexString: "#111111", alpha: 0.25).cgColor : NSColor(hexString: "#f5f5f5", alpha: 1).cgColor
self.layer?.backgroundColor = (isDarkMode ? NSColor(red: 17/255, green: 17/255, blue: 17/255, alpha: 0.25) : NSColor(red: 245/255, green: 245/255, blue: 245/255, alpha: 1)).cgColor
}
public func update(_ batteryLevel: [KeyValue_t]) {