CHENGJIAHEGOXIS on X: the masking card's big number was a thin, tall
face ("瘦长的比较别扭"), and some text in dark mode was very dark: Library
› MCP's project help under 项目服务器.
The masking count (.msk-num, redact.css) drops its own SF Pro Display at
weight 100 for the interface's font at 600 and -.035em, as .si-pct b and
.kpi b have; its 52px and line-height stay, so the card's layout doesn't
move.
The help is .lib-aside, drawn in --faint. The dark theme's --faint was
#56565f: 2.39:1 on --bg, 2.16:1 on --card. It and --muted are raised in
both dark blocks and the dark panel's:
--faint #56565f -> #90909a (panel #7c7c87 -> #90909a)
on --bg 2.39 -> 5.49, --card 2.16 -> 4.95, --card-2 2.26 -> 5.19,
menu (--pop-bg) 2.07 -> 4.76, panel bg 2.34 -> 5.38, panel card
2.08 -> 4.77
--muted #8b8b94 -> #9c9ca6 (the panel's own value already)
on --bg 5.14 -> 6.38, --card 4.64 -> 5.76, menu 4.46 -> 5.54,
--pill 4.05 -> 5.03
fg-2 > muted > faint is kept. With a picture behind the page (84% veil,
appearance.go), --faint holds 4.5:1 up to a mid-grey #808080 picture
(4.52); a picture brighter than that under the words can't keep 4.5:1
for any grey quieter than --fg-2 without a heavier veil, which is left
as it is. .effort-ends loses its .8 opacity over --muted. The light
theme's --faint (1.95:1 on white) needs both light steps moved
together: #7153.
New test dim-text-contrast.test.cjs, Chromium and WebKit: the dark
--faint and --muted at 4.5:1 on every dark ground in the window and the
panel, with the steps kept; Library › MCP's two .lib-aside lines at
4.5:1 on the dark page, with no picture, #262626 and #808080 behind it,
in zh/en/zh-TW/ja/de at 1100 and 420 (web), no sideways scroll; the
masking count's weight and family the same as .si-pct b's and .kpi b's,
its tracking no tighter, fitting its card in dark and light, every
language, 1100 and 420.
Run (mote, through mote-run):
- old code: dim-text-contrast red 6 of 6 (--faint rgb(86,86,95) on
--bg reads at 2.39:1; weight 100, the app's big numbers 600).
- this commit's tree (on ee079814b): dim-text-contrast,
quota-caption-contrast, i18n-keys: 12 of 12 ok; go test ./internal/gui
-run 'Budget|Appearance|Scheme' ok; gofmt -l clean. go test
./internal/gui (whole package) ok at the pre-rebase head.
- whole GUI suite (make test-ui, concurrency 4) at the pre-rebase head:
31 files red besides this one, the same files red alone at
origin/main ee079814b (526 pass / 210 fail there vs 537 / 205 here),
recorded on #6975. dim-text-contrast's one red there read the help
mid-fade-in (2.19:1 through an ancestor's opacity); it now waits for
every box over the words to be opaque, and is green after.
- screenshots before/after in Chromium and WebKit (Library › MCP dark,
plain and with a picture; masking dark and light).
Not tried: the real app and WebKitGTK; a picture brighter than #808080;
the light theme (#7153).