fix(theme): keep default active rows subtle and add navigate cursor color - #2838
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (10)
📝 WalkthroughWalkthroughThe PR adds ChangesNavigate Selection Background
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change narrows active-row styling to affected themes and adds a distinct, configurable Navigate cursor color; no actionable merge-blocking risk remains after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant CustomThemeColors
participant PaletteWithOverrides
participant Sidebar
NavigateMode->>CustomThemeColors: configure selection_bg
CustomThemeColors->>PaletteWithOverrides: provide optional color
PaletteWithOverrides->>Sidebar: expose Palette::selection_bg
NavigateMode->>Sidebar: select workspace row
Sidebar-->>NavigateMode: render row with selection_bg
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Follow-up to #2794 (refs #2792). That fix made active Space/Agent rows visible on themes where they blended into a matching terminal background, but it did so by brightening the active-row highlight on every built-in theme, noticeably changing how existing themes look.
This PR narrows the change to the philosophy: don't alter defaults that weren't broken, fix the ones that were, and give the Navigate cursor its own color so the two highlights can't be confused.
active_row_bgvalues for themes where the old highlight was invisible or ambiguous against a matching terminal background (tokyo-night, dracula, nord, gruvbox, one-dark, one-light, solarized, kanagawa, rose-pine-dawn).selection_bgfor the Navigate-mode cursor row (expanded workspace cards and collapsed sidebar rows). Most themes use an accent-tinted background so the cursor is distinct by hue from the passive active highlight.theme.custom.selection_bgas an override, documented in the config reference and en/ja/zh configuration pages.Testing
just check(fmt, cargo nextest, maintenance scripts) green after rebasing onto master.selection_bg.