Closed flukejones closed 8 months ago
Something else I'd really like to see is a conversion to/from hex string as this would enable hex input for colour pickers.
Sounds like a good idea to me (color channel accessors).
Duplicate of #911
I'll close in favour of the linked issue.
Since we support a conversion from hex to a color in the language itself, it seems like it might make sense to also offer this as a run-time API. I've created a separate ticket for it (as the description of this relates to #911 ): https://github.com/slint-ui/slint/issues/4745
Ah, our paths crossed - thanks for closing :)
More often than not I'm finding I need to make callbacks to be able to do other kinds of manipulations for slint
color
type. For example:It would also be very handy to have direct access to a
<color>.red()
so that some other kinds of ops can be done in slint code itself, plus being able to pull individual channels out.