feat(ui): 深色模式与主题 token 及选中态修复#661
Merged
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
PR Reviewer Guide 🔍(Review updated until commit 6b13ee2)Here are some key observations to aid the review process:
|
6 tasks
Re-add width=device-width after dark-mode squash replaced it; keep color-scheme meta for native control hints. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Author
跟进修复
|
Contributor
|
Persistent review updated to latest commit 6b13ee2 |
jiangmuran
added a commit
that referenced
this pull request
Jun 15, 2026
内存优化:webview 代码分割 + i18n 按需加载(index 440→285KB) + 胶囊录音帧节流 + qa/less-computer/glow 窗口懒创建(idle WebKit 进程 5→2)。含 #661 暗色模式。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
摘要
upstream/beta(含 feat(android): 对齐移动端构建与发布流水线 #658 Android pipeline、feat(ui): 移动端竖屏 UI 适配 #659 mobile-portrait)单提交合入深色模式。data-ol-theme实现全平台深色模式;设置 → 通用 → 外观 支持跟随系统 / 浅色 / 深色,并以localStorage启动缓存 + RustUserPreferences.theme_mode双写持久化。测试计划
替代冲突中的 #660。
PR Type
Enhancement, Bug fix
Description
Implement dark mode via CSS tokens and data-ol-theme
Add ThemeSection and chipSelectedStyle for chip theming
Fix chip and SelectLite backgrounds in dark mode
Theme capsule and settings modal for system preference
Diagram Walkthrough
File Walkthrough
15 files
Add color-scheme meta tagAdd ThemeMode enum and preference fieldUse theme tokens for shell background and panelReplace hardcoded gradients with theme tokensAdd theme mode manager with localStorage and Rust syncAdd ThemeMode type declarationInitialize theme mode on app startReplace hardcoded ink colors with tokensApply theme tokens to style pack cardsTheme Card, Pill and Btn with CSS variablesAdd ThemeSection with SelectLiteAdd shared chipSelectedStyle and btnGhostStyleImport ThemeSection in GeneralTabAdd global dark theme styles and utility classesAdd dark theme tokens and capsule variables5 files
Theme capsule pill and buttons with CSS variablesTheme settings modal with token-based stylesUse theme tokens for trigger and popoverUse chipSelectedStyle for filter chipsRemove hardcoded white background on SelectLite17 files