ColorField output alpha

At the moment dealing with alpha values is bit cumbersome. The ColorField editor supports #rgba notation (i.e. #FFFFFFFF) but the hex output in the API loses the alpha value (#FFFFFF).

Because of this, using the hex field is a bit brittle

  • Using it directly ignores the intent of the editor
  • The existing alpha from the rgba fields is not compatible with the opacity notation range [0,255] -> [0,1] and needs to be mapped anytime a hex field is used and can easily be forgotten.

It seems the safest option would be to deprecate the hex field or extend the ColorField to separate the different notations (rgba(), #rgba, hsla etc.)

Thanks for looking into this!

thank you for this @gerhard and welcome to community! :slight_smile: