Releases: ALegendsTale/obsidian-color-palette
Releases · ALegendsTale/obsidian-color-palette
2.12.1
Changes
- fix: editor instance sometimes not loading at startup
2.12.0
Changes
- Edit mode & Quick Edit for customization
- Drag & Drop reordering in Edit Mode
Settings
hoverWhileEditing
setting which modifies if hover is active while editing (hover is now disabled by default in Edit Mode)
Bug Fixes
- fix: set status when creating invalid palettes
- fix: disable selecting palette spans
Dev Notes
-
Created
PaletteItem
& transferred majority of palette child to it, along withEditMode
-
Trash
was moved fromCreatePaletteModal
and has now becomeQuick Edit
onPaletteMenu
-
Added
Edit Mode
, which can open the fullCreatePaletteModal
-
New
PaletteMenu
toggle item forEdit Mode
-
Unique icons for
PaletteMenu
items -
fix: edit mode and drag & drop had different behaviour. On palette modification, DnD would modify without reload but edit mode wouldn't. Turns out Obsidian
registerMarkdownCodeBlockProcessor
does not reload unless character length changes.
2.11.0
Changes
PaletteMenu
, a new context menu for color palettes. It can convert colors, sort them, & more.ReorderModal
, a modal which goes along withPaletteMenu
. It helps suggest available sorting options- fix: set random back to default generate option
- bumped package versions
2.10.0
Changes
- Count slider for image mode to select how many colors to generate
- Improved image mode styling
2.9.2
Changes
- fix: Image mode lagging after opening large images
- fix: Image mode returning incorrect colors
2.9.1
Changes
- fix: Invalid gradients no-longer spam notices. Resized palettes won't emit notices
- fix: Gradient palettes can not have a width of 0
- fix: Skip non-validated colors when creating gradients (when
override
= true)
2.9.0
Changes
CreatePaletteModal
CreatePaletteModal
image mode. Convert images into color palettes using thecreate
command.- Reordered
CreatePaletteModal
tabs - Misc. styling improvements
- fix: hovering tab buttons shows pointer
2.8.0
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
2.7.1
Changes
- Create command color generation option now applies aliases just like generate command
- Stopped adding settings which have not been modified, when creating palettes using commands
- Convert link command can now convert links directly from the users clipboard