mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 07:35:02 +00:00
HexCodec writes the digits without the #, uppercase, with one or two digits per channel and the alpha digits only when asked; it reads with or without a leading #, and a draft applies as soon as it is a colour. HexField is monospace with the # as a fixed prefix (TextField::prefix, a text adornment), so the picker, the Color panel readout, preferences and Save for Web all show it the same way.