mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Hook up the color picker
This commit is contained in:
parent
67900bfa51
commit
6c2e3cd316
1 changed files with 4 additions and 3 deletions
|
|
@ -149,9 +149,10 @@ struct AmbientLightingConfig: View {
|
|||
func setAmbientLightingConfigValue() {
|
||||
self.ledState = node?.ambientLightingConfig?.ledState ?? false
|
||||
self.current = Int(node?.ambientLightingConfig?.current ?? 10)
|
||||
color = Color(red: Double((node?.ambientLightingConfig?.red ?? 255) / 255),
|
||||
green: Double((node?.ambientLightingConfig?.green ?? 255) / 255),
|
||||
blue: Double((node?.ambientLightingConfig?.blue ?? 255) / 255))
|
||||
let red = Double(node?.ambientLightingConfig?.red ?? 255)
|
||||
let green = Double(node?.ambientLightingConfig?.green ?? 255)
|
||||
let blue = Double(node?.ambientLightingConfig?.blue ?? 255)
|
||||
color = Color(red: red / 255.0, green: green / 255.0, blue: blue / 255.0)
|
||||
self.hasChanges = false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue