mirror of
https://github.com/storytold/deckcraft.git
synced 2026-12-01 18:23:52 -06:00
The Font dialog's OK sent the `color` it was opened with back to `format.fontDialog`. For a preset or system name that `color_value` does not know, that color is the RGB it is drawn with, so OK replaced the name even when only another field changed. A color with more than 256 transforms made OK fail with "invalid `color`", so the other edits were not applied either. OK now sends no `color` when the Color field is untouched, and the text keeps its color reference as stored. An edited Color field is sent as before. Tests: a UI test opens the dialog on an unknown preset with 257 transforms and on an unknown system color, ticks Bold and presses OK; an engine test sends the dialog's fields without `color` and checks that the stored color, size and bold are kept.