Use workspace tab color for selected sidebar rows
Closed
AU
8mo ago+80+80+01234567890123456789-6-6-0123456789
Summary
- use a workspace's assigned tab color for the selected sidebar row when available
- darken overly bright custom colors until the existing white selected-state text stays readable
- keep the existing sidebar selection color and accent fallback when no workspace-specific color is set
Testing
- not run locally per repo policy
Closes #2565
Summary by cubic
Use each workspace’s tab color as the selected sidebar row background, with automatic darkening to keep white text readable. Keeps existing selection color and accent fallback when no workspace color is set. Closes #2565.
- New Features
- Selected row uses the workspace tab color when available.
- Automatically darkens bright colors to maintain 4.5:1 contrast with white text.
- Respects light/dark mode via
WorkspaceTabColorSettings.displayNSColor(...). - Falls back to
sidebarSelectionColorHex, then the app accent color.
Summary by CodeRabbit
-
Improvements
- Enhanced sidebar color contrast by automatically adjusting background colors to meet WCAG accessibility standards, improving readability and usability.
-
New Features
- Added support for custom per-workspace colors and customizable sidebar selection color overrides for personalized interface appearance.