Skip to content

fix(win): 优化远程托盘控制体验#2

Closed
musdrop wants to merge 1 commit into
focuxdot:mainfrom
musdrop:codex/win-tray-remote-polish
Closed

fix(win): 优化远程托盘控制体验#2
musdrop wants to merge 1 commit into
focuxdot:mainfrom
musdrop:codex/win-tray-remote-polish

Conversation

@musdrop

@musdrop musdrop commented Jul 7, 2026

Copy link
Copy Markdown

修改内容

本 PR 回馈 Windows 托盘远程控制器的三项小范围改进:

  1. 提升托盘窗口清晰度与可读性

    • 启用 DPI aware,避免高 DPI 屏幕下托盘窗口和控件发糊。
    • 切换为 Microsoft YaHei UI,并调整二维码、设备列表、通知设置等窗口尺寸与控件间距,减少文字拥挤和显示不全。
  2. 单独添加“启动远程”按钮

    • 原来“扫码配对”会隐式启动远程,适合首次配对。
    • 但已配对手机再次使用时,只需要恢复 daemon/远程服务,不一定要重新打开二维码。
    • 因此菜单新增独立“启动远程”,同时保留“扫码配对手机”在需要时隐式启动远程的行为。
  3. 修复停用/退出后 daemon 仍可能残留的问题

    • disable 除了结束并删除计划任务外,现在会兜底查找当前安装目录下的 remote daemon 进程并终止进程树。
    • 托盘“退出”也改为先调用 disable,避免托盘关闭后远程服务继续后台运行。

测试

  • node --test test\tray-source.test.mjs test\remote-backend-win.test.mjs
  • npm test

说明

本 PR 仅包含 Windows 托盘交互、显示清晰度和远程停用可靠性相关改动,尽量避免引入与其它平台、远程协议或安装包定制无关的修改。

PR 代码与说明均由 Codex 生成。

@musdrop musdrop force-pushed the codex/win-tray-remote-polish branch from 7de774a to 434e0f5 Compare July 7, 2026 10:27
@focuxdot

focuxdot commented Jul 8, 2026

Copy link
Copy Markdown
Owner

你上面说的有部分已经在独立的远程模块项目做了些修复,可以考虑使用单独的远程模块。
https://github.com/focuxdot/CXX

@focuxdot focuxdot closed this Jul 8, 2026
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