Skip to content

fix(windows/theme): 修复Windows深色模式下文字不可读 (#148) - #172

Merged
1lck merged 2 commits into
1lck:preview/0.3.0from
gaoyuzhe-cmd:fix/issue_148_win_dark_text
Aug 19, 2026
Merged

fix(windows/theme): 修复Windows深色模式下文字不可读 (#148)#172
1lck merged 2 commits into
1lck:preview/0.3.0from
gaoyuzhe-cmd:fix/issue_148_win_dark_text

Conversation

@gaoyuzhe-cmd

Copy link
Copy Markdown
Contributor

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待处理

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待处理
@gaoyuzhe-cmd
gaoyuzhe-cmd requested a review from 1lck as a code owner August 19, 2026 02:31
@1lck
1lck merged commit 73cd827 into 1lck:preview/0.3.0 Aug 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants