more code cleanup in `input-colorpicker-text`