From f320c0d9f475a207458f7ddcb5409760091c63e4 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 7 Jun 2026 14:44:05 -0400 Subject: [PATCH] Spotlight brightens the caret's family instead of dimming the rest The full color field stays put; the family under the caret glows ~1.8x (capped at 60%). Additive, not subtractive. Co-Authored-By: Claude Opus 4.8 (1M context) --- static/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/index.html b/static/index.html index b8fe9fe..9788c6b 100644 --- a/static/index.html +++ b/static/index.html @@ -600,11 +600,11 @@ function render(){ : (p && (focusGid === null || p.g === focusGid)) ? p : (w || p); let alpha = !t.ph ? (t.end ? 34 : 19) : (t.end ? 24 : 14); - if(focusGid !== null && t.g !== focusGid) alpha = Math.round(alpha * 0.22); + // the caret's family brightens; everything else stays itself + if(focusGid !== null && t.g === focusGid) alpha = Math.min(60, Math.round(alpha * 1.8)); style += `background:color-mix(in srgb, ${colorOf(t)} ${alpha}%, transparent);`; }else if(op){ - const opAlpha = focusGid === null ? 13 : 3; - style += `background:color-mix(in srgb, var(--ink-dim) ${opAlpha}%, transparent);`; + style += `background:color-mix(in srgb, var(--ink-dim) 13%, transparent);`; } if(al) style += `box-shadow:inset 0 -2px 0 0 color-mix(in srgb, var(--r${al.g % COLORS}) 75%, transparent);`; h += `${text}`;