Fix Windows thread edge background#4493
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 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 |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 7d8709c. Configure here.
ApprovabilityVerdict: Approved Simple UI fix that changes a dark background color value (#161616 → #0a0a0a) and simplifies theme color syncing logic by using a CSS variable instead of querying specific DOM elements. Changes are purely visual with no runtime behavior impact beyond styling. You can customize Macroscope's approvability policy. Learn more. |

Summary
Fixes a dark strip that could briefly appear along the right edge of the window when switching threads on Windows.
Electron can expose the window background for a moment while the page repaints. This change maps that surface to the app's existing
--backgroundcolor, so it stays aligned in both light and dark mode.Screenshots
Verification
Note
Low Risk
Small theme/chrome styling changes with no auth, data, or API impact; limited to initial paint and theme-color sync behavior.
Overview
Fixes a brief dark strip on the right edge when switching threads in the Windows Electron app by keeping the exposed window background aligned with the app surface during repaints.
Dark mode base moves from
#161616to#0a0a0ainindex.html(theme-color meta tags, boot script, andhtml.dark body) so early paint matches the design token used elsewhere.Browser chrome sync in
syncBrowserChromeThemeno longer samplesmain[data-slot='sidebar-inset']/ sidebar inner /bodybackgrounds. It setshtmlandbodytovar(--app-chrome-background)and derives the dynamictheme-colormeta from that resolved color, matching the existing--app-chrome-background→--backgroundwiring in CSS.Reviewed by Cursor Bugbot for commit 1baad2b. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Fix dark mode background color for Windows thread edge
#161616to#0a0a0ain index.html, affecting the CSS, boot script constant, andtheme-colormeta tags.syncBrowserChromeThemein useTheme.ts to derive the browser chrome color from a new--app-chrome-backgroundCSS variable on the root element, replacing the previous logic that read color from a sidebar or main surface element.Macroscope summarized 1baad2b.