aboutsummaryrefslogtreecommitdiff
path: root/tests/test-prog-python-commands.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-08 20:44:33 -0500
committerCraig Jennings <c@cjennings.net>2026-06-08 20:44:33 -0500
commit0a6d2655eff7eb8ef3fec070e85a4f8e4c6ad67d (patch)
tree6130003ceb4500ec0fb38f29e5cc38cdf90d04c9 /tests/test-prog-python-commands.el
parente4d1a978666fb4e62e7e78accf1000f3efee5162 (diff)
downloaddotemacs-0a6d2655eff7eb8ef3fec070e85a4f8e4c6ad67d.tar.gz
dotemacs-0a6d2655eff7eb8ef3fec070e85a4f8e4c6ad67d.zip
feat(theme-studio): warn on too-similar palette colors by ΔE
Perceptual-metrics Phase 3. renderPalette now runs a pairwise OKLab ΔE over the palette and warns on any pair below the named DELTAE_MIN threshold (0.02). The warning lists the closest pairs first, caps at five, and appends "and N more" so a noisy palette never hides the count. Each chip's tooltip gains its nearest-neighbor ΔE. paletteDeltas computes the pairs and the per-color nearest distance in one pass, feeding both the chip titles and the warning list. Palette names go through esc before they reach the warning markup. A #deltatest headless guard asserts a near-identical pair fires and names itself, a spread palette stays quiet, and a tight cluster caps at five in ascending order with the overflow suffix.
Diffstat (limited to 'tests/test-prog-python-commands.el')
0 files changed, 0 insertions, 0 deletions