Skip to content

Releases: ALegendsTale/obsidian-color-palette

2.12.1

03 Jul 07:29
Compare
Choose a tag to compare

Changes

  • fix: editor instance sometimes not loading at startup

2.12.0

03 Jul 04:24
Compare
Choose a tag to compare

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 with EditMode

  • Trash was moved from CreatePaletteModal and has now become Quick Edit on PaletteMenu

  • Added Edit Mode, which can open the full CreatePaletteModal

  • New PaletteMenu toggle item for Edit 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

29 Jun 18:19
Compare
Choose a tag to compare

Changes

  • PaletteMenu, a new context menu for color palettes. It can convert colors, sort them, & more.
  • ReorderModal, a modal which goes along with PaletteMenu. It helps suggest available sorting options
  • fix: set random back to default generate option
  • bumped package versions

2.10.0

27 Jun 23:15
Compare
Choose a tag to compare

Changes

  • Count slider for image mode to select how many colors to generate
  • Improved image mode styling

2.9.2

27 Jun 08:23
Compare
Choose a tag to compare

Changes

  • fix: Image mode lagging after opening large images
  • fix: Image mode returning incorrect colors

2.9.1

26 Jun 21:00
Compare
Choose a tag to compare

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

26 Jun 03:44
Compare
Choose a tag to compare

Changes

CreatePaletteModal

  • CreatePaletteModal image mode. Convert images into color palettes using the create command.
  • Reordered CreatePaletteModal tabs
  • Misc. styling improvements
  • fix: hovering tab buttons shows pointer

2.8.0

25 Jun 22:33
Compare
Choose a tag to compare

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

19 Jun 03:13
Compare
Choose a tag to compare

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

2.7.0

18 Jun 05:32
Compare
Choose a tag to compare

Changes

  • Colors in parenthesis without spaces now parse correctly
  • Override setting, which overrides the color validation system #10
  • Generated palettes are now delimited by newlines by default