feat: Claude Code lavender accent for selected/highlighted text #42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "clfy-claude-accent"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
pi highlights selected text (select lists, settings rows, the
→cursor, inline code, list bullets) with its themeaccentkey — teal#8abeb7in dark mode. Claude Code uses a blue-purple lavender. This PR overrides the live theme'sfgColors.accentwith Claude Code's value, behind a newaccentColorsetting (claude|theme, defaultclaude) on the Theme section of/claudify.The Claude value was extracted from the v2.1.211 binary's theme literals — dark
rgb(177,185,249)#B1B9F9, lightrgb(87,105,247)#5769F7— and the dark value is pinned by the live 256-color capture (CC's permission-mode label downconverts to exactly38;5;147). Dark vs light pi theme is detected by text-color luminance. The original accent is remembered per theme instance sothememode restores it exactly, guarded against pi's forwarding theme Proxy. Onlyaccentis overridden —borderAccentand the spinner keys stay pi's own.Capture + extraction evidence:
docs/plans/2026-07-16-cc-accent-color.md(includes the uncertainty note on the dark/light assignment of the binary literals — the constant pair is one place to tweak if it looks off next to a real CC pane).Test plan
scripts/test-claudify-hub.ts: override applies (object and MapfgColors), is idempotent, restores exactly onaccentColor=theme, picks the light value for dark-text themes, and the Theme section exposes the row (existing row-navigation assertions updated for the new row).tsc --noEmit --strictclean.