Fix web UI light theme not forcing light mode (#456)#752
Conversation
|
We require contributors to sign our Contributor License Agreement, and we don't have yours on file. In order for us to review and merge your code, please contact @jniebuhr (mdwasp) on Discord to get yourself added. |
1 similar comment
|
We require contributors to sign our Contributor License Agreement, and we don't have yours on file. In order for us to review and merge your code, please contact @jniebuhr (mdwasp) on Discord to get yourself added. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (4)
📝 WalkthroughWalkthroughThe PR adds an explicit "system" theme option that follows OS preference by not setting data-theme, introduces Set-based theme validation and constants, updates applyTheme and the index.html bootstrap to avoid theme flash, changes Settings default to "system" with a new selector option, and adds CSS variables for a forced light theme. ChangesSystem Theme Support
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
Add a System theme option that follows OS preferences and make Light explicitly set data-theme='light'. Update the pre-load theme script and add light-theme CSS overrides so analyzer colors stay light even when the OS prefers dark. Co-authored-by: Cursor <cursoragent@cursor.com>
Use Set.has(), Array.includes(), and dataset API for theme checks and data-theme updates in the pre-load script and theme manager. Co-authored-by: Cursor <cursoragent@cursor.com>
3ce4576 to
647c2d7
Compare
|



Summary
index.htmland adds explicit light-theme CSS overrides for analyzer/statistics colorsTest plan
npm run lint:checkandnpm run buildinweb/passSummary by CodeRabbit
New Features
Improvements