fix(windows/theme): 修复Windows深色模式下文字不可读 (#148) - #172
Merged
1lck merged 2 commits intoAug 19, 2026
Conversation
Problem: Windows端深色模式部分文字回落黑色,背景与文字对比度不足无法阅读。 Changes: 1. index.html 增加 color‑scheme meta,适配WebView2原生控件 2. base.css 给 html/body/#root 增加 --foreground兜底颜色 3. 将深色选择器由 @media prefers-color-scheme / .dark 迁移至 [data‑theme‑type=dark] 4. theme.css 补齐缺失语义主题变量别名 5. chart.tsx 更新图表深色主题选择器 Validation: bun run typecheck 通过 bun run lint:无新增错误,warning为存量mock文件未使用变量 Follow‑up: 1. Tailwind dark变体需要重定向到data‑theme‑type 2. radio‑group选中圆点视觉优化 3. code‑tokens还有部分硬编码浅色token待处理
1lck
approved these changes
Aug 19, 2026
Closed
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.
Problem:
Windows端深色模式部分文字回落黑色,背景与文字对比度不足无法阅读。
Changes:
Validation:
bun run typecheck 通过
bun run lint:无新增错误,warning为存量mock文件未使用变量
Follow‑up: