mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 17:37:40 +00:00
* fix(sidebar): keep the selected card's host pill outline visible in dim themes #38841 tinted the host pill outline 40% of the sidebar text into the sidebar. A theme whose sidebar text is only 4.5:1 leaves that outline at about 1.6:1 against the selected wash, which matches the pill's fill, so the pill loses its shape. When an app theme is painted, its colors are now concrete, so compute once per theme the smallest mix (from 40%) that gives the outline 2:1 against the selected wash, the same floor focus rings use, and paint it as --worktree-host-pill-outline-mix. main.css falls back to 40%, so Orca's built-in themes and any theme bright enough keep today's look. The tinted sidebar resets it, like the row wash. The wash's CSS fallback joins the fallback table so the check (and the token reference) read what main.css paints. Refs #38641 * fix(sidebar): floor the host pill outline in the tinted left sidebar too The tinted sidebar paints the app's text on its tint mixed into the app background, so the theme's measured outline mix doesn't apply there and it fell back to 40%: a dim theme (#919191 on #2a2a2a) at the default 8% tint left the outline at 1.6:1 on the selected wash. Measure the tinted colors once whenever the app theme or tint settings change, paint the result as a root variable, and have the tinted sidebar read it. Share the measurement (hostPillOutlineMixOver) with the theme path, and make its comment name the actual invariant instead of the pill label's contrast. Refs #38641