diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-09 20:06:53 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-09 20:06:53 -0500 |
| commit | 2f3b67922ab1d3eca4f0411f63b45380d3f03001 (patch) | |
| tree | dda9b55fb9ba5f442851227b5efb6c2f825ea6c9 /scripts/theme-studio/samples.py | |
| parent | 6221ff63723dd6ac80909ec63e0a80fa29e4be9c (diff) | |
| download | dotemacs-2f3b67922ab1d3eca4f0411f63b45380d3f03001.tar.gz dotemacs-2f3b67922ab1d3eca4f0411f63b45380d3f03001.zip | |
feat(theme-studio): re-bind "(gone)" assignments when a name returns
Deleting a palette color leaves any assignment pointing at it showing "(gone)". Recreating a color with the same deleted name now re-points those stranded assignments to the new color, even when its hex differs, instead of leaving them stuck on the old hex forever.
Delete records the removed name and hex; the next add of that name re-points every reference (syntax map, UI faces, package faces) to the new hex and consumes the record. The registry clears on import so a stale name from a previous theme can't re-bind across a load. I pulled the re-point loop that update-selected already used into a shared helper. A #healtest gate covers delete-then-recreate-with-a-new-hex.
Diffstat (limited to 'scripts/theme-studio/samples.py')
0 files changed, 0 insertions, 0 deletions
