Anki/qt
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
..
aqt fix: persist colour picker's custom palette in profile (#4326) 2025-09-17 16:46:53 +10:00
icons move remaining Filter button items into sidebar 2021-02-05 18:58:22 +10:00
launcher Ensure the newly-spawned terminal doesn't inherit the env var 2025-09-04 16:18:11 +10:00
mac Expose control over AppNap for AnkiConnect 2025-08-19 19:46:11 +10:00
release Create release wheel as part of normal build 2025-06-21 19:17:48 +07:00
tests Change Anki's version scheme; bump to 23.09 (#2640) 2023-09-07 12:37:15 +10:00
tools Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
hatch_build.py aqt wheel: fix unintended inclusion of qt/aqt/data (#4180) 2025-07-07 23:44:08 +07:00
pyproject.toml Expose control over AppNap for AnkiConnect 2025-08-19 19:46:11 +10:00
README.md minor doc updates 2020-12-11 22:37:12 +10:00
runanki.py get PyQt working directly with ./run on macOS 2021-10-16 18:07:29 +10:00

Python's Qt GUI is in aqt/