Files
splinter/libsplinter.so
T
Konrad dc35261ed2 splinter: the theme was unreadable, and here is why
Two real defects, both measurable:

1. COLORS was read before start_color(), so it was 0 and the colour mapper took
   the eight-basic-colour branch. Every palette collapsed to white on black -
   the theme was effectively ignored.
2. A CDE palette is eight mid-tones. Painted literally, Delphinium's accent sat
   8% away from the background in luma and its secondary text 14%: readable on a
   1995 desktop with a light backdrop, unreadable in a terminal.

Fix: the background is darkened (same hue) until its luma is a terminal
background, then each role is pushed away from it - foreground 120k, accent
100k, labels 60k in luma units. Delphinium now gives 14:1 for text, 7.7:1 for
accent and 4.7:1 for labels on a slate background, with the palette's blues
intact. Verified in the escape stream: 38;5;230 text, 38;5;68 and 38;5;74
accents, 48;5;235 surface.

sp_color_darken and sp_color_separate live in theme.c so any future consumer
gets the same rule, and the deltas are named in one place instead of spread over
four init_pair calls.
2026-11-07 21:16:14 +00:00

71 KiB
Executable File