Skip to content

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

Closed
gaoyuzhe-cmd wants to merge 161 commits into
1lck:mainfrom
gaoyuzhe-cmd:fix/issue_148_win_dark_text
Closed

gaoyuzhe-cmd wants to merge 161 commits into
1lck:mainfrom
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待处理

arkleselect and others added 30 commits August 14, 2026 11:52
- qualify git_checkout, git_checkout_preflight, and git_delete_branch
  references with refs/heads/ and pass referenceKind: local, matching the
  shared core contract that rejects short branch names
- translate git_checkout_preflight to git.checkoutPreflight and adapt its
  blocking paths plus git_checkout results for the branch manager UI
- run checkout preflight from checkoutBranch so blocked switches surface
  hasChanges and reuse the existing stash-and-retry flow, and propagate
  real git error output on failure
- translate git_diff_file and git_status_diff_stats filePath into the
  git.diff pathspecs contract instead of the unrelated paths field, and
  fall back to ["."] so whole-tree stat requests are not rejected
- derive diff stat staged flags from the request instead of hardcoding
  false, and fetch staged and unstaged stats so both groups show counts
- open diffs in split view like the macOS reference product and IDEA
  instead of a hardcoded unified default
- persist the unified/split preference in a zustand store so the choice
  survives reopening diffs and restarting the app
…ut-contract

fix(windows): align local branch checkout and deletion refs
…y-pagination

fix(windows): improve Git diff viewing and history pagination
…ispatcher

- translate git_merge and git_rebase into git.write with qualified
  refs/heads references, mirroring the checkout translations
- add git_integration_preflight, git_operation_state,
  git_operation_continue/abort/skip, and git_conflict_markers
  translations so the frontend can drive the shared core's conflict
  machinery
- map git.operationState responses into a UI-ready shape and collapse
  the no-operation case to null, matching the macOS model
- pass through integration preflight blocking paths and conflict
  marker paths for the upcoming banner and commit guard
- add git-integration-api with preflight-first merge/rebase that
  distinguishes conflict stops from real failures via operation state
- store operationState in the workspace git store and refresh it on
  every status pass so banner state stays true to the repository
- mirror the macOS banner: in-progress title, rebase step counters,
  conflict count, and Continue/Skip/Abort actions
- keep Continue disabled while conflicts remain and re-run resolution
  through the shared core, refreshing state after every attempt
- add a per-branch action menu with Merge into Current Branch and
  Rebase Current Branch onto This behind one confirmation each
- surface clean, conflict-stop, blocked-by-dirty, and failure outcomes
  with the shared core's preflight and operation state
- refuse to commit while the operation state still lists conflicted
  paths or staged files contain conflict markers, with the file names
  surfaced instead of Git's raw refusal
The action wrapper only stopped pointer-down propagation, so the click
that opened the menu also bubbled to the row's checkout handler, which
disabled the trigger and closed the menu instantly. Stop click
propagation like the retired delete button did.
…menu

Button wraps itself in a Tooltip component when given a tooltip prop,
so Base UI's render prop attached the menu trigger handlers to the
tooltip wrapper instead of the real button and clicks never opened the
menu. Pass only aria-label, like the working diff header trigger.
在活动栏左下角增加运行入口,配置由 Rust Core 生成并写入 .lithe,Windows 宿主负责发现本机 JDK/Maven 并拉起进程。打开项目不会自动生成配置。
feat(windows): 支持在桌面端运行 Java、Maven 与 Spring Boot 项目
行尾 Git Blame 注入文本会挡住最后一个字符,CRLF 残留和等宽宽度缓存也会让光标停在行尾前。改为浮动 Blame、规范化换行,并在拖选时避免打断选区。

Co-authored-by: Cursor <cursoragent@cursor.com>
Wz58luck and others added 18 commits August 18, 2026 20:37
Add automatic and manual JDK 17+ resolution on macOS and Windows while keeping project runtimes independent. Recover invalid JDTLS caches and package the server only for Release builds.\n\nRefs 1lck#149
Add log directory configuration for macOS
@gaoyuzhe-cmd
gaoyuzhe-cmd requested a review from 1lck as a code owner August 19, 2026 01:56
1lck and others added 4 commits August 19, 2026 10:03
…le-explorer-zh

fix(windows): complete Simplified Chinese UI
Bundle JDTLS with packaged applications
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 force-pushed the fix/issue_148_win_dark_text branch from ed581ba to 579156b Compare August 19, 2026 02:24
xiaoyumuxi added a commit that referenced this pull request Nov 22, 2026
…测试 (#2231) (#2300)

#2299 合入后在真实主机上做 #43c 验收时发现两个问题:

- wsl.exe 把失败写在标准输出,Core 只读标准错误。连接一个没装的发行版
  因此报成 failed,诊断只有退出码。固定版本升到 Core #169 的 edad041:
  没装的发行版是 unreachable,未知用户是 failed,诊断都带 wsl.exe 的原文。
  注释补上 #2299 漏写的 18feb4a(#167)一行。
- workbench 的测试内核没有替换 RemoteListWSLDistributions,在装了 WSL 的
  Windows 上,远程开发窗口会列出本机真实的发行版,导致测试失败。testKernel
  改为返回空列表,remoteProbeKernel 改为嵌入 testKernel。

新增 desktop/internal/core/remote_acceptance_test.go,只在环境变量指定真实
SSH 主机或 WSL 发行版时运行:杀掉传输子进程模拟断线,确认 resume 后能接回
运行;“保留”关闭后重连,确认能接回进程;另外检查 WSL 两种失败的分类。
macOS(OrbStack Alpine aarch64,经 OpenSSH)和 Windows(WSL Ubuntu x86_64)
均已通过。矩阵和 Agent Note 记入验收结果。
@xiaoyumuxi xiaoyumuxi mentioned this pull request Nov 22, 2026
15 of 18 tasks
xiaoyumuxi added a commit that referenced this pull request Nov 22, 2026
* chore(desktop): Go 工具链升到 1.27.4,入门文档同步

CI 的 setup-go 都读 desktop/go.mod 的 toolchain 行,和 Core #171 把 Go SDK 升到 1.27.4 保持一致。

* fix(desktop): Core 固定版本从 #169 的分支 commit edad041 换到 main 3cb3c5b

3cb3c5b 包含 #169(eeebb58)、#170 和 #171;和 edad041 相比 Rust 源码相同,只差 CI、文档、一个测试和 Go SDK 的 go.mod。

* release: Lithe Desktop 0.8.14 版本号与发布说明

* docs(matrix): 关于页记录 Go 运行时来自 desktop/go.mod 的 toolchain 行,发布验收核对它
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.