Files
deckcraft/crates
dotCooCoo 25dc8b9dcf Format: OK with the Font dialog's Color untouched keeps the stored color
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.
2026-11-21 22:30:26 -08:00
..
2026-11-18 17:16:31 +07:00