So far, whenever you choose either a single color or multiple, the code is the same.
Handle it in the global webhandler, and make a concatenatable HTML block.
Also: instead of having five radio buttons and one color picker, just use five color pickers.
Bonus points: Remember the point in the html string where "value=\"#ff00ff\" " is, and dynamically snprintf/memcopy the current color value, so it represents the status quo
So far, whenever you choose either a single color or multiple, the code is the same. Handle it in the global webhandler, and make a concatenatable HTML block.
Also: instead of having five radio buttons and one color picker, just use five color pickers.
Bonus points: Remember the point in the html string where "value=\"#ff00ff\" " is, and dynamically snprintf/memcopy the current color value, so it represents the status quo