Repository navigation
Conversation
The selected segment of the composer's speed control and permissions row used bg-input/72 on a bg-input/40 track. In dark mode the two fills are nearly the same, so users could not tell which option was active. Give the selected segment the raised pill of the segmented Toggle primitive (bg-background with a small shadow, rounded on all sides). In dark mode, use a foreground tint that stays clearly lighter than the track on every theme. Fixes pingdotgg#41864
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Problem
In the composer's model picker, the selected Standard / Fast segment used
bg-input/72on abg-input/40track. In dark mode the two fills are about 8% and 4% white, so users could not tell which speed was active. The Permissions row in the same picker had the same style and the same problem.Fix
The selected segment now uses the look of the
segmentedToggle primitive:bg-backgroundwith a small shadow and rounded corners on all sides. The primitive's dark style is the same weakbg-input/72, so in dark mode the selected segment usesbg-foreground/16. This is a theme token, so it stays lighter than the track on custom themes too. The change applies to the speed control (Codex service tiers and Claude's Fast toggle) and to the Permissions row.Web and desktop share this component. Mobile shows speed as a menu option, so it is not affected. This also covers the rounding change in #29483.
Screenshots
After, dark mode with Fast selected, and the Permissions row:
Verification
vp run typecheckandvp run check:changedpass. Checked in the dev app in light and dark mode with synthetic data.Fixes #41864
Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.