mirror of
https://github.com/discourse/discourse.git
synced 2025-06-17 14:32:32 +08:00

Restores the category text/foreground color field that was removed in #32015. We are also retaining the auto text color selection that was introduced and applying on background color change rather than when the form is saved. The text color algorithm has been changed from color brightness to use color difference instead, which appears to be more reliable. Algorithm for color difference: https://www.w3.org/TR/AERT/#color-contrast --------- Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>