Nat Strangerweather
06/15/2022, 8:34 PMColor
value to Int
(using toArgb()
) so I can save it in Datastore, how would I then convert the Int
back to Jetpack Compose Color
?Scott Peterson
06/15/2022, 8:35 PMColor.valueOf(theIntValue)
?Nat Strangerweather
06/15/2022, 8:39 PMColor.valueOf
... The option is not available.romainguy
06/15/2022, 8:39 PMColor(Int)
function for thisromainguy
06/15/2022, 8:40 PMColor(color.toULong() shl 32)
😄Francesc
06/15/2022, 8:40 PMNat Strangerweather
06/15/2022, 8:41 PMromainguy
06/15/2022, 8:51 PMColor
is stored internally