Anki/proto/anki
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
..
ankidroid.proto More service generation refactoring 2023-06-22 09:46:09 +10:00
ankihub.proto Integrate AnkiHub Sign-in (#3232) 2024-08-17 10:58:23 +07:00
ankiweb.proto Change Anki's version scheme; bump to 23.09 (#2640) 2023-09-07 12:37:15 +10:00
backend.proto Flag server messages so AnkiDroid can handle them separately 2024-11-08 22:54:15 +10:00
card_rendering.proto Modify card rendering output to specify if rendered card is empty (#3890) 2025-03-31 17:51:28 +07:00
cards.proto Add last_review_time to card data for performance and accuracy (#4124) 2025-07-08 00:41:01 +07:00
collection.proto Refactor: Make Load Balancer Optional Throughout Codebase (#3860) 2025-03-26 23:19:28 +10:00
config.proto Feat/Add legacy evaluate config bool (#4149) 2025-07-04 15:32:09 +07:00
deck_config.proto Feat/Use cached workload values (#4208) 2025-07-28 19:00:16 +10:00
decks.proto Feat/per-deck desired retention (#4194) 2025-07-28 18:22:35 +10:00
frontend.proto fix: persist colour picker's custom palette in profile (#4326) 2025-09-17 16:46:53 +10:00
generic.proto Add java_multiple_files option to proto files 2022-06-27 15:16:04 +10:00
i18n.proto More service generation refactoring 2023-06-22 09:46:09 +10:00
image_occlusion.proto Fix IO editor always starting in "hide all, guess one" mode (#3709) 2025-01-09 23:14:02 +11:00
import_export.proto Allow creating deck via #deck:... if non-existent when importing (#4154) 2025-07-08 00:46:04 +07:00
links.proto Remove remaining remnants of unused error; fix CI 2024-11-19 15:26:02 +10:00
media.proto Add a backend method to extract static media references (#2716) 2023-10-11 14:10:02 +10:00
notes.proto Show the number of cards added when adding (#4310) 2025-09-02 18:06:49 +10:00
notetypes.proto Cloze button get disabled outside of cloze field (#3879) 2025-04-24 18:37:41 +10:00
scheduler.proto Fix/use real step count to simulate (#4240) 2025-08-04 16:01:26 +10:00
search.proto Enable nc: to only search in a specific field (#4276) (#4312) 2025-09-04 11:52:08 +10:00
stats.proto Feat/FSRS-6 (#3929) 2025-04-25 16:44:34 +10:00
sync.proto Add support for custom certificates (#3203) 2024-05-24 10:57:54 +01:00
tags.proto More service generation refactoring 2023-06-22 09:46:09 +10:00