Is there any compelling reason for web/common to u...
# compose-web
d
Is there any compelling reason for web/common to use a different Color representation to Android/Desktop? (
value class / ULong
vs
data class RGB Hex
); this only makes the two worlds harder to bridge, and there aren't any ready conversion functions that I can see. Couldn't all the color code standardize on
ULong
, and the common Color disclose an Android/Desktop color via
.implementation
?
👍 2
To share colors, current common code situation means rolling your own, for anything except
r,g,b
e.g:
...and then later doing...
...and then
.toComposeColor()
<-- many places 🥱