Anki/ts/editor
llama 80cff16250
fix: persist colour picker's custom palette in profile (#4326)
* add SaveCustomColours rpc method

* restore custom colour palette on editor init

* save custom colour palette on colour picker open and input

there doesn't seem to be an event fired when the picker is
cancelled/closed, so it's still possible for work to be lost

* save colours on `change` instead of `input`

`input` is supposed to be fired on every adjustment to the picker
whereas `change` is only fired when the picker is accepted, but qt
seems to treat both as the latter, so this is currently a no-op

* Store colors in the collection

One minor tweak to the logic while I was there: an invalid color no
longer invalidates all the rest.

---------

Co-authored-by: Damien Elmes <gpg@ankiweb.net>
2025-09-17 16:46:53 +10:00
..
editor-toolbar fix: persist colour picker's custom palette in profile (#4326) 2025-09-17 16:46:53 +10:00
image-overlay don't show "double click to expand" when it's not possible (#4030) 2025-05-22 23:21:08 +10:00
mathjax-overlay place caret after mathjax element on overlay close event (#4016) 2025-05-19 13:43:01 +10:00
plain-text-input
rich-text-input Cloze button get disabled outside of cloze field (#3879) 2025-04-24 18:37:41 +10:00
base.ts
BrowserEditor.svelte
ClozeButtons.svelte Fix 'same cloze' shortcut on macOS 2025-07-18 18:12:30 +07:00
code-mirror.ts
CodeMirror.svelte
CollapseBadge.svelte
CollapseLabel.svelte Followup to #4122 (make text selectable) (#4132) 2025-06-29 14:42:19 +07:00
decorated-elements.ts Remove use of createClassComponent in mathjax-element.ts (#3919) 2025-04-13 16:21:22 +10:00
destroyable.ts
DuplicateLink.svelte
EditingArea.svelte Cleanup old TODO (#3903) 2025-04-11 20:38:20 +10:00
editor-base.scss Use system font for webviews instead of bootstrap font stack and add exception for note editor (#4163) 2025-07-08 00:51:44 +07:00
EditorField.svelte Cloze button get disabled outside of cloze field (#3879) 2025-04-24 18:37:41 +10:00
FieldDescription.svelte
Fields.svelte
FieldState.svelte
HandleBackground.svelte
HandleControl.svelte
HandleLabel.svelte
helpers.ts
index.ts
LabelContainer.svelte
LabelName.svelte FIX: Margin between icon was selectable but shouldn't be (#4122) 2025-06-28 21:47:29 +03:00
legacy.scss
NoteCreator.svelte
NoteEditor.svelte Cloze button get disabled outside of cloze field (#3879) 2025-04-24 18:37:41 +10:00
Notification.svelte
old-editor-adapter.ts
PlainTextBadge.svelte
PreviewButton.svelte
ReviewerEditor.svelte
RichTextBadge.svelte
StickyBadge.svelte
surround.ts
types.ts