Changes
- Rewrote palette.ts & transferred some logic to paletteMRC.ts to further distinguish them & allow palette usage in other places besides as a MarkdownRenderChild
- fix:
palette
only updates colors & settings when colors array is empty - fix:
generateColors
combination.Random applies aliases - fix: clamp
generateColors
randomNumber to a minimum of 2 to prevent empty return - fix: settings.ts now only updates palettes when PaletteSettings have changed
CreatePaletteModal
- Rewrote majority of
CreatePaletteModal
. Palette can now be previewed & improved UI with button tabs for each of the 3 color options, 'URL', 'Color Picker', and 'Generate'. - Placeholder text & tooltips for some inputs
- Right click to clear some inputs
- Palette color font scales smaller based on number of colors
- Fill palette initially with random colors
- fix: trash not generating uppercase aliases for palette
- fix: show trash on initial load
- fix: stop copying colors when clicking trash
- fix: remove palette span display when trash is present
- fix: only change URL placeholder on load