Repository navigation
fix(appearance): sidebar appearance reaches the right panel and tab bar - #31166
thomas-seres wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Style the floating header when the sidebar is collapsed. · AppWorkspaceShell.tsx:141
src/renderer/src/app-shell/AppWorkspaceShell.tsx:141
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winStyle the floating header when the sidebar is collapsed.
When a workspace is active and
sidebarOpenis false, the floating.titlebar-leftreceives no appearance variables. Its stock background remains visible beside the newly tinted tab strip. Apply the chrome style to the floating header too; keep its existing width condition. The layout permits this floating-header state, and the header background falls back to the stock--card. (raw.githubusercontent.com)
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
f380fc77-951d-46a3-b6ef-9b49fe89c996
📥 Commits
Reviewing files that changed from the base of the PR and between 98e7dbe and 2b397b56e819d85b9197cd5afc68a8eb5d8a6471.
📒 Files selected for processing: 19
src/renderer/src/app-shell/AppWorkspaceShell.tsxsrc/renderer/src/app-shell/use-app-chrome-layout.tssrc/renderer/src/components/right-sidebar/index.tsxsrc/renderer/src/components/settings/AppearancePane.test.tsxsrc/renderer/src/components/settings/LeftSidebarAppearanceSetting.tsxsrc/renderer/src/components/settings/appearance-sidebar-search.tssrc/renderer/src/components/sidebar/index.tsxsrc/renderer/src/components/tab-group/TabGroupPanel.tsxsrc/renderer/src/components/tab-group/TabGroupSplitLayout.test.tssrc/renderer/src/components/tab-group/TabGroupSplitLayout.tsxsrc/renderer/src/hooks/use-chrome-appearance-style.test.tsxsrc/renderer/src/hooks/use-chrome-appearance-style.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/left-sidebar-appearance.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
Addressed the outside-diff note in 8db6377ad5: the floating |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Update the tint-strength description across all locales. · LeftSidebarAppearanceSetting.tsx:39-68
src/renderer/src/components/settings/LeftSidebarAppearanceSetting.tsx:39-68
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winUpdate the tint-strength description across all locales.
Tintedapplies the tint to the sidebars, tab strip, titlebars, and side panel, but this description still says the tint applies only to the sidebar. Update the fallback and all six locale entries so users see the correct scope.Suggested fix
- 'Controls how strongly the tint is mixed into the sidebar.' + 'Controls how strongly the tint is mixed into the sidebars, tab bar, titlebars, and side panel.'Apply equivalent localized wording in
en.json,es.json,fr.json,ja.json,ko.json, andzh.json.
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
49206bf5-d3be-4707-a478-42fe9f3cd46f
📥 Commits
Reviewing files that changed from the base of the PR and between 2b397b56e819d85b9197cd5afc68a8eb5d8a6471 and 8db6377ad54957894ad1e7c46dc17908e232b54f.
📒 Files selected for processing: 2
src/renderer/src/app-shell/AppWorkspaceShell.tsxsrc/renderer/src/app-shell/WindowControls.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
Addressed the outside-diff tint-strength note in 47e71091b1: the description now reads "Controls how strongly the tint is mixed into the sidebar, tab bar, and side panel surfaces." — matching the tint-color description — in the fallback and all six locales. |
Match Terminal and Tinted only styled the left column, so the tab strip, titlebars and right sidebar kept stock tokens. Share the scoped vars via useChromeAppearanceStyle, tint --card in tinted mode, and rename the setting to Sidebar & Panel Appearance.
The collapsed-sidebar header floats over the now-themed tab strip and the Windows/Linux window controls overlay themed chrome; both read stock tokens until now.
47e7109 to
1e7329c
Compare
|
Rebased on latest main (single import conflict in TabGroupPanel.tsx, resolved). CI hasn't run yet: the fork workflows are waiting for approval. |
|
Closing as superseded by #36567: Match Terminal is now a full app theme that colors the whole window and keeps low-contrast terminal palettes legible. Thank you for this PR, it shaped the design. |
ELI5
When you set the sidebar to "Match Terminal" or "Tinted", only the left sidebar changed color. The tab bar at the top and the panel on the right stayed the default gray, so the window looked like two different themes stitched together. Now the whole frame around your terminal uses the same colors.
What Changed
Before: with Settings → Appearance → Left Sidebar Appearance set to Match Terminal or Tinted, the left sidebar took the terminal or tint colors. The tab strip, the titlebar and the right sidebar (files, source control, checks…) kept the stock theme colors.
After: the tab strip (and the thin drag strip above it), the full-width titlebar and the right sidebar follow the same setting. Default mode looks exactly as before.
Mechanism: the setting works by putting CSS color variables on specific elements (inline
style), not on the whole page. Until now those variables were only set on the left column. This PR:useChromeAppearanceStyle(src/renderer/src/hooks/use-chrome-appearance-style.ts), which wraps the existingresolveLeftSidebarStyleVariables. The left sidebar and the app shell layout already had their own copies of this logic; both now use the hook.--card. Tab strips and titlebars paint with--card, which Tinted didn't override before, so they stayed untinted.leftSidebarAppearanceMode) is unchanged, so existing preferences carry over.Why
The variables stay on the chrome elements only and are not set on
<html>. Setting them globally would also recolor editor content, markdown previews, dialogs and other surfaces that are meant to keep the app theme. Reusing the existing resolver also means each mode keeps a single definition. The hook picks only the settings fields it reads, so unrelated settings changes don't re-render every tab strip.Not in scope: the status bar, popovers and dialogs (these already don't follow the setting on the left side either), and plugin panels.
Linked Issue
Fixes #31165
Visual Proof
Testing
use-chrome-appearance-style.test.tsx: default → no override; Match Terminal → terminal-derived--sidebar/--card/--border; Tinted → tinted--card; the style object stays stable across unrelated settings writes.AppearancePane.test.tsx: the setting can now be found by searching "tab bar".TabGroupSplitLayout.test.ts: mocks the new hook (that test calls the component as a plain function).pnpm lint,pnpm tc,pnpm run check:code-quality:changed, the e2e app build, and the settings / tab-group / sidebar / right-sidebar / app-shell test suites pass locally.AI Disclosure
Implemented with Claude Code (Claude Opus 5.5), then reviewed and verified by me.
Review
Agent skill upstream boundary
Notes
Renderer-only styling change: no IPC, wire-format or persisted-settings change. SSH/remote, Windows, Linux and mobile are unaffected beyond the shared colors, and there are no path or shortcut changes.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)