From fec0485b68e9e9dee6ba123a8dd5b86353831cdf Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 7 Jun 2026 14:48:41 -0400 Subject: [PATCH] Dark ink on the spotlit chips At 85% fill the off-white text washed out; the focused family's glyphs flip to dark (like the primary button) with a touch of weight. Possible because the highlight layer owns glyph color. Co-Authored-By: Claude Opus 4.8 (1M context) --- static/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index a95da73..04671c9 100644 --- a/static/index.html +++ b/static/index.html @@ -601,7 +601,10 @@ function render(){ : (w || p); let alpha = !t.ph ? (t.end ? 34 : 19) : (t.end ? 24 : 14); // the caret's family brightens; everything else stays itself - if(focusGid !== null && t.g === focusGid) alpha = Math.min(85, Math.round(alpha * 2.8)); + if(focusGid !== null && t.g === focusGid){ + alpha = Math.min(85, Math.round(alpha * 2.8)); + style += 'color:#1a120c;font-weight:600;'; // dark ink on the lit chip + } style += `background:color-mix(in srgb, ${colorOf(t)} ${alpha}%, transparent);`; }else if(op){ style += `background:color-mix(in srgb, var(--ink-dim) 13%, transparent);`;