Modifies Spectrum color pickers to offer the user’s selection of preset colors and accept input.
当前为
This Kanka script modifies Spectrum color pickers to offer the user’s selection of preset colors instead of the handful of defaults. This applies to forms such as Events, Relations and Map Markers. Let me know if you find another that would need this.
The script as released will show the same colors as standard, but split into two rows to demonstrate the syntax. To customize your palette, you will need to add your color values in any valid format to the palette setting in the spectrumSettings function, as identified in the script.
Valid formats are listed in Spectrum’s documentation: https://bgrins.github.io/spectrum/#details-acceptedColorInputs