Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
427095212b |
No files matched your search
@@ -1,64 +0,0 @@
|
||||
name: Core regression
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, 'codex/**']
|
||||
tags: ['v*']
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
portable-regression:
|
||||
name: Python core and release configuration
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- name: Checkout tested commit
|
||||
run: |
|
||||
git init .
|
||||
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
|
||||
git fetch --depth=1 origin "${GITHUB_SHA}"
|
||||
git checkout --detach FETCH_HEAD
|
||||
- name: Install runner Python and test dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3 python3-pytest
|
||||
python3 --version
|
||||
- name: Compile application and build helpers
|
||||
run: python3 -m compileall -q src packaging tools
|
||||
- name: Core regression (no CAD or production credentials)
|
||||
run: >-
|
||||
python3 -m pytest -q
|
||||
tests/dsh/test_core.py
|
||||
tests/dsh/test_failure_policy.py
|
||||
tests/dsh/test_decision_log.py
|
||||
tests/dsh/test_experience.py
|
||||
tests/dsh/test_issue_broker.py
|
||||
tests/packaging/test_dsh_runtime_staging.py
|
||||
tests/packaging/test_release_configuration.py
|
||||
--junitxml=build/ci-results.xml --tb=short
|
||||
- name: Windows release scope
|
||||
run: |
|
||||
echo 'Windows PyInstaller, Qt WebEngine startup, full runtime file hashes and extracted EXE smoke are validated on the Windows build host.'
|
||||
echo 'This Linux job does not claim Windows/CAD or live model acceptance.'
|
||||
|
||||
javascript-regression:
|
||||
name: JavaScript syntax
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- name: Checkout tested commit
|
||||
run: |
|
||||
git init .
|
||||
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
|
||||
git fetch --depth=1 origin "${GITHUB_SHA}"
|
||||
git checkout --detach FETCH_HEAD
|
||||
- name: Check runtime syntax
|
||||
run: |
|
||||
node --check integration/dsh/start.mjs
|
||||
node --check integration/dsh/task-plugin/host.mjs
|
||||
node --check integration/dsh/task-plugin/client.js
|
||||
@@ -18,5 +18,3 @@ __pycache__/
|
||||
coverage.xml
|
||||
/.worktrees/
|
||||
/.superpowers/
|
||||
node_modules/
|
||||
/integration/dsh/issue-bootstrap.json
|
||||
@@ -0,0 +1,11 @@
|
||||
# 项目维护约定
|
||||
|
||||
## 持续版本记录
|
||||
|
||||
- 项目的统一问题与修改记录是根目录 `版本问题与修改记录.md`。
|
||||
- 后续每次修改功能、修复问题、分析新的诊断包或发布版本,均同步更新该文件;不得只在聊天中说明。
|
||||
- 工作尚未完成时写入“未发布与文档维护”;发布时补全真实版本、日期、问题、证据、修改、验证、限制和交付信息。
|
||||
- 若改变了历史方案,保留旧记录并明确标注替代关系,同时更新“当前有效行为”。
|
||||
- 未验证的根因、版本归属和现场结果写“待核实”;不能把模拟测试、便携版自检写成全部真实 CAD 工程验收通过。
|
||||
- 纯文档维护不自动增加程序版本,不覆盖既有发布 ZIP;需要更新交付包时遵循该次任务范围。
|
||||
- `tools/package_portable.py` 会把主记录复制为包内的 `版本问题与修改记录.md`;以后打包前确保记录已同步。
|
||||
@@ -4,38 +4,18 @@
|
||||
|
||||
面向 **Windows + DxDesigner / Expedition Enterprise 7.9.5** 的器件批量替换工具。一个工程对应一个任务,可以只替换同料号下的部分位号;支持直接编辑和 Excel BOM 导入,同批工程按顺序执行。
|
||||
|
||||
**最新版本:V1.2.1(预发布)** · [下载便携包](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/releases/download/v1.2.1/DxPartReplace-1.2.1.zip) · [版本说明与附件](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/releases/tag/v1.2.1) · [完整使用说明](docs/user/v1.1.0-project-tasks.md)
|
||||
**当前本地交付版本:1.2.0-beta.31。** 从早期版本到当前的问题、修改、诊断依据、验证范围及后续更新,统一见 [版本问题与修改记录](版本问题与修改记录.md)。下面的 1.1.x 发布链接和教程属于历史资料,当前行为以该记录为准。
|
||||
|
||||
V1.2.1 提供完整 Node/Qt 运行时、DSH 任务功能和全部 UI 资源。升级前备份 data,完整更新 EXE 与 _internal,不要只替换 EXE。
|
||||
本分支附有 [Windows x64 离线依赖和安装说明](dependencies/windows-x64/README.md)。
|
||||
|
||||
本版修复冻结应用缺少 SVG 资源的问题,保留维护者配置的工单上报能力,并增加云端 CI。[本版变更](docs/releases/v1.2.1.md)。
|
||||
**历史公开发布:V1.1.4 Beta 4(预发布)** · [下载便携包](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/releases/download/v1.1.4-beta.4/DxPartReplace-1.1.4-beta.4.zip) · [版本说明与附件](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/releases/tag/v1.1.4-beta.4) · [完整使用说明](docs/user/v1.1.0-project-tasks.md)
|
||||
|
||||
所有发布均标记为 **Beta 预发布**。V1.1.4 Beta 1 因 BOM 导入缺少 `win32timezone` 已撤回,请使用 Beta 4;旧 Git 标签保留供回溯。升级前备份 `data`,完整更新 EXE 与 `_internal`,不要只替换 EXE。
|
||||
|
||||
Beta 4 面向停止与资源收尾复测:普通暂停等待当前项保存核验,写入中无进度不再自动杀进程;新增明确确认的强制结束,保留中断证据与恢复入口。[本版变更和复测说明](docs/releases/v1.1.4-beta.4.md)。
|
||||
|
||||
本版提供[目标封装选择](docs/user/target-cell-selection.md):目标封装可留空,此时工具不主动覆写封装,可后续与中心库同步;需要指定时,在料号规则中读取并选择合法封装。BOM 保持原 11 列。
|
||||
|
||||
## DSH助手:在工具内使用 AI
|
||||
|
||||
本项目已将 **DSH助手** 集成到任务中心主窗口。顶部固定显示两个入口:左侧 **任务中心**、右侧 **DSH助手**,单击即可切换,无需展开菜单;助手保留 DeepSeek Harness 官方三栏界面、SVG 动画、模型选择、会话和未发送草稿。也可以使用 `Ctrl+Shift+D` 打开助手。
|
||||
|
||||
DSH助手围绕真实任务中心工作,支持:
|
||||
|
||||
- 用自然语言创建任务、修改规则、复制或归档任务;工程选择和提交仍由原生窗口确认。
|
||||
- 查询任务快照、执行预检、影响范围和实际执行历史。
|
||||
- 在原生确认后按冻结范围执行任务,支持安全暂停、原队列恢复和排期授权。
|
||||
- 发生异常时自动介入,收集脱敏证据链、保留诊断记录,并在需要时提交受限 Git 工单。
|
||||
- 在右侧任务监管中查看运行、影响、排期、经验、工单和用量;审计损坏、证据缺失和未知计数会明确显示。
|
||||
|
||||
AI 不能直接写入 CAD、运行 Shell、访问任意文件或绕过确认门禁。自动异常诊断为只读;不确定执行不会自动重放,恢复必须重新核对冻结计划、检查点和业务证据。未配置模型时仍可使用任务监管和本地恢复功能,但不会产生真实模型回复。
|
||||
|
||||
首次接入打开 **工具设置 → 模型 → 添加模型提供商 → 自定义模型 API**,填写 API 地址、协议和密钥,点击 **获取可用模型** 并选择需要的模型,也可手动填写模型 ID。保存后在输入框下方选择模型。设置保存在任务中心数据目录的专用 Harness profile,重启会保留;主工具预配置的密钥继续由 Windows DPAPI 保护,模型设置页新增的密钥使用 Harness 本地凭据存储。开发环境也可通过 `DSH_API_BASE`、`DSH_MODEL`、`DSH_API_KEY` 临时提供配置。不要把数据目录、API key 或 Git 凭据提交到 Git。
|
||||
|
||||
详细的能力边界、异常介入、证据链、排期和工单说明见 [DSH助手使用与监管说明](docs/user/dsh-ai-supervision.md)。源码环境可用下面的命令检查运行时门禁:
|
||||
|
||||
```powershell
|
||||
$env:PYTHONPATH = 'src'
|
||||
python -X utf8 -m dx_productivity.dsh --doctor
|
||||
node tools/verify_dsh_runtime.mjs
|
||||
```
|
||||
|
||||
## 图文教程
|
||||
|
||||
按下面 **13 步**,完成“创建任务 → 填 BOM → 导入校验 → 保存计划 → 替换 → 查看结果”。本例有两个工程 `Audio_D2128`、`Audio_T605A`,各自只替换 `RV05`,保留同料号下的 `RV11`。
|
||||
@@ -44,7 +24,7 @@ node tools/verify_dsh_runtime.mjs
|
||||
|
||||
### 第 1 步:解压并打开应用
|
||||
|
||||
[下载 V1.2.1 便携包](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/releases/download/v1.2.1/DxPartReplace-1.2.1.zip),**完整解压**,双击 `DxPartReplace.exe`。保留它与 `_internal` 的相对位置,无需安装 Python;本机需要可用的 DxDesigner、许可证和中央库。
|
||||
[下载 V1.1.4 Beta 4 便携包](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/releases/download/v1.1.4-beta.4/DxPartReplace-1.1.4-beta.4.zip),**完整解压**,双击 `DxPartReplace.exe`。保留它与 `_internal` 的相对位置,无需安装 Python;本机需要可用的 DxDesigner、许可证和中央库。
|
||||
|
||||
打开后看到下图主窗口。首次使用请准备完整的工程副本,执行前保存并关闭待处理工程。
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# beta.31 Windows x64 离线依赖
|
||||
|
||||
`wheels/` 收录 Python 3.12 x64 使用的运行、测试和打包依赖。`requirements.lock` 固定每个包的版本和 SHA256。运行库版本与 beta.31 便携包的第三方版本清单一致。
|
||||
|
||||
安装 Python 3.12 x64 后,从仓库根目录执行以下 PowerShell 命令。
|
||||
|
||||
```powershell
|
||||
py -3.12 -m venv .venv
|
||||
.\.venv\Scripts\python.exe -m pip install --no-index --find-links dependencies/windows-x64/wheels --require-hashes -r dependencies/windows-x64/requirements.lock
|
||||
.\.venv\Scripts\python.exe -m pip install --no-index --no-build-isolation --no-deps -e .
|
||||
.\.venv\Scripts\python.exe -m pip check
|
||||
```
|
||||
|
||||
打包入口为 `packaging/Build-DxPartReplace.ps1`。真实 CAD 操作需要本机安装 DxDesigner、有效许可证及工程使用的器件库。
|
||||
|
||||
核对基准为 `DxPartReplace-1.2.0-beta.31-Windows-x64.zip`,SHA256 为 `7f0fc33a9c3e83e647eeb8f29641ae04dc9aa2895b923f91884f499d157b33f6`。已逐一核对包内 103 个应用模块、程序入口及两份 VBS 脚本与本分支导入的源码。
|
||||
@@ -0,0 +1,29 @@
|
||||
# Windows x64, CPython 3.12. Runtime, test and build dependencies.
|
||||
altgraph==0.17.5 --hash=sha256:f3a22400bce1b0c701683820ac4f3b159cd301acab067c51c653e06961600597
|
||||
build==1.6.1 --hash=sha256:ecd351a4be9d35a9eaaba244a7687143c9c7d4aea6ac964e7e7ddab20cbcf4e7
|
||||
colorama==0.4.6 --hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
|
||||
comtypes==1.4.17 --hash=sha256:4e0a221dde2c589b82977bed802efd71cd5eb67a380347b732e02735e597f586
|
||||
coverage==7.17.0 --hash=sha256:88a1a9fb0075b83389dd9b403bb3fce976031b3c2aa0e05e3e57143cf639de69
|
||||
et_xmlfile==2.0.0 --hash=sha256:7a91720bc756843502c3b7504c77b8fe44217c85c537d85037f0f536151b2caa
|
||||
iniconfig==2.3.1 --hash=sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7
|
||||
openpyxl==3.1.5 --hash=sha256:5282c12b107bffeef825f4617dc029afaf41d0ea60823bbb665ef3079dc79de2
|
||||
packaging==26.3 --hash=sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c
|
||||
pefile==2024.8.26 --hash=sha256:76f8b485dcd3b1bb8166f1128d395fa3d87af26360c2358fb75b80019b957c6f
|
||||
pillow==12.3.0 --hash=sha256:a2b55dd6b2a4c4b7d87ffa56bdb33fdc5fdb9a462173861a7bc097f17d91cb09
|
||||
pluggy==1.7.0 --hash=sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec
|
||||
Pygments==2.21.0 --hash=sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9
|
||||
pyinstaller==6.22.3 --hash=sha256:500bd58c7bf7e584a8435adccbd763a0b918d5c12b08d74ff50fd79b2915458b
|
||||
pyinstaller-hooks-contrib==2026.9 --hash=sha256:fb3e67dd64122561724c48ad0366ac9e8c16e638b63bf7d85de03bf3fdbf06c3
|
||||
pyproject_hooks==1.3.3 --hash=sha256:5fc53fdac9f7bd63fbcdc868fb5f90b4784d78a53a3d3388cd738b807441a20b
|
||||
PySide6_Essentials==6.8.3 --hash=sha256:3c0fae5550aff69f2166f46476c36e0ef56ce73d84829eac4559770b0c034b07
|
||||
pytest==8.4.2 --hash=sha256:872f880de3fc3a5bdc88a11b39c9710c3497a547cfa9320bc3c5e62fbf272e79
|
||||
pytest-cov==6.3.0 --hash=sha256:440db28156d2468cafc0415b4f8e50856a0d11faefa38f30906048fe490f1749
|
||||
pytest-qt==4.5.0 --hash=sha256:ed21ea9b861247f7d18090a26bfbda8fb51d7a8a7b6f776157426ff2ccf26eff
|
||||
pywin32==312 --hash=sha256:b457f6d628a47e8a7346ce22acb7e1a46a4a78b52e1d17e1af56871bd19a93bc
|
||||
pywin32-ctypes==0.2.3 --hash=sha256:8a1513379d709975552d202d942d9837758905c8d01eb82b8bcc30918929e7b8
|
||||
pywinauto==0.6.9 --hash=sha256:5924b3072864a1d730c5546bbeb17cf4063ba518b618dbc5e43c18276c7c9356
|
||||
setuptools==84.2.1 --hash=sha256:ca140b45d5325a9478f880e351484f62fef15f336462e449ca0c03c873d589c2
|
||||
shiboken6==6.8.3 --hash=sha256:bca3a94513ce9242f7d4bbdca902072a1631888e0aa3a8711a52cc5dbe93588f
|
||||
six==1.17.0 --hash=sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274
|
||||
typing_extensions==4.16.0 --hash=sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8
|
||||
wheel==0.48.0 --hash=sha256:3217dcc807155e45db462d7ef2431f5ddda0d7273b700d05a67b271ceb1287ab
|
||||
@@ -1,18 +0,0 @@
|
||||
# PR #17 提供方迁移修复
|
||||
|
||||
目标:修复 PR #17 评论 #168 的旧地址与新密钥错配,保留原生自定义提供方及其独立凭据。
|
||||
|
||||
设计:`dx` 且引用启动环境 `DSH_API_KEY` 的配置归主工具管理,每次启动从当前主工具配置完整刷新;独立凭据的提供方保留。Harness 的插件 config 整块替换,因此用户 providers 存在时须同时纳入当前主工具提供方。迁移旧生成配置时,生成的 dx 默认模型回到当前主工具默认值;原生用户选定的有效 dx 模型和自定义提供方默认模型继续保留。没有主工具配置时清除旧应用管理的路由与默认选择。修改前保存原文件备份,重复初始化不重复改写。
|
||||
|
||||
凭据来源补充:上游本地保存的引用优先于环境变量。显式 dx 使用本地保存的 DSH_API_KEY 时,整条路由和密钥作为原生用户覆盖保留。启用了主工具模型、却只有孤立本地密钥时拒绝启动,不从历史 policy 猜测地址;没有主工具模型时不阻断其他独立提供方。首次正常启动即在原生用户配置中物化完整的应用 dx,确保此后模型页仅修改密钥也能保留它所属的地址和模型。配置准备不修改凭据文件,解析错误不包含密钥原文。
|
||||
|
||||
绑定证明以 Harness 真实 composition 为准,保留 name assertion / insert 语义,拒绝凭据、模型适配器和默认模型的重复 ID。从有效 credentials 配置解析实际文件路径。启动前确认最终应用路由与当前配置一致;桌面接入前再次核对实际凭据来源和仅在内存中的密钥摘要,避免环境与文件来源互换。
|
||||
|
||||
不采用只删除旧 dx 的方案:用户的 providers 整块覆盖会遮住新的应用提供方。不采用保留旧地址并换密钥的方案:会破坏凭据绑定。
|
||||
|
||||
执行步骤:
|
||||
|
||||
- [x] 新增真实 Harness/本机 HTTP 回归,覆盖旧 overlay、更换提供方、已有迁移结果、自定义提供方/默认模型、重复启动及主工具配置清除;先确认当前代码失败。
|
||||
- [x] 在启动配置准备阶段按来源刷新应用提供方,保留其他原生配置及凭据文件。
|
||||
- [x] 跑 HTTP 回归、现有 runtime/profile 检查、Python 回归和实际 Qt 模型设置点击;未复现点击失败,保留原脚本。
|
||||
- [x] 更新验收记录与 PR 描述,检查 diff 和秘密泄露后提交、推送到现有 PR;不合并。
|
||||
@@ -0,0 +1,11 @@
|
||||
# DxPartReplace 1.2.0-beta.10
|
||||
|
||||
- 替换结果及 Excel 导出增加原 Value / 实际回读 Value。原值来自替换前快照,实际值在原有属性核验后读取;保存重开核验后重新记录实际值。按 job_id / 返回状态关联并立即保存在事件日志,避免下一个规则覆盖证据。旧历史缺失数据明确标注,不推算实际值。
|
||||
- 左侧工程列表分为正在替换、未完成、已完成,三组独立折叠并记忆偏好;使用蓝色、浅橙色、绿色背景,损坏/校验失败工程额外标红。只将真实活动工程归入正在替换;旧轮次保留在历史。
|
||||
- 按用户要求:损坏/无法读取的工程关闭读取会话后跳过,不修复、不重复尝试打开。只读采集取消、CAD 启动和无进展等待均有界;在确认资源退出后继续后面的工程。
|
||||
- 旧版强制关闭留下的只读监督进程可在新导入前回收,必须同时核验旧主窗口已退出、监督进程 PID 和创建时间吻合、操作属于只读白名单。写入过程保护和其他 CAD 进程不受此规则影响。
|
||||
- 新增“停止当前工程”,外层结束本次自有进程而不等待 COM,标红“已停止 / 结果待核验”。界面批量调度按工程隔离监督进程,保护当前工程后停止本轮;尚未执行的工程可另行继续。原有 Replace Part、属性恢复、保存和核验逻辑不变。安全暂停继续等待当前项收尾。
|
||||
|
||||
升级时保留完整 data,与新 EXE 和 _internal 配套使用。修复的是采集、取消和调度流程,不修复工程 iCDB 数据库。
|
||||
|
||||
验证及边界详见 docs/superpowers/plans/2026-10-29-values-and-project-groups.md。
|
||||
@@ -0,0 +1,13 @@
|
||||
# DxPartReplace 1.2.0-beta.11
|
||||
|
||||
本版增加读取和解析的诊断记录,用于定位 UID 报告格式、CAD 启动、工程打开及器件采集中的具体问题。保持所有解析接受条件、UID 校验、原生替换、Value/NC、取消和资源释放策略不变。
|
||||
|
||||
- `application.log` 增加受监督只读操作的进度、校验返回的通过/失败/未核对行数,以及最多 100 条失败行的工程、Excel 行号和原因。明确区分“调用返回”和“校验通过”。
|
||||
- 每次原生清单/后台 CAD 读取的证据目录增加 `read-trace.jsonl` 和 `read-state.json`,记录 UTC 时间、进程、工程/任务标识、解析阶段和退出结果。后台工作进程每 5 秒记录等待状态、无进展秒数、计数和是否请求取消;不模拟进度。
|
||||
- 原生 UID 错误增加报告文件名、行号、UID 原文和字符编码、附近报告片段;同时保留有界的正常器件标识样例。可区分大写 I、小写 l、数字 1 及隐藏字符;不会自动改写 UID。
|
||||
- 诊断包新增上述记录及现有原生采集元数据、工作进程状态/输出、读取会话释放记录;优先导出近期读取记录。继续执行容量限制和用户路径/凭证脱敏,不导出完整原生报告、BOM、数据库或工程。
|
||||
- 所有新增追踪写入均为尽力记录。诊断存储不可写时,不改变业务结果或跳过资源清理。
|
||||
|
||||
使用:升级后重新导入有问题的清单,出现等待或失败时点击“诊断包”,发送生成的完整 ZIP。仅发送 application.log 无法包含详细报告片段。新版本不能补录旧版已经发生的解析过程。
|
||||
|
||||
便携版已包含运行依赖;仍需本机安装可用的 DxDesigner。升级保留完整 data,并配套使用新 EXE 和 _internal。
|
||||
@@ -0,0 +1,7 @@
|
||||
# DxPartReplace 1.2.0-beta.12
|
||||
|
||||
- 诊断包 `DxPartReplace-诊断-20261030-112928` 显示:工程实际已打开;原生展开报告中的 `POWER_IN`,符号 `in.1` 且没有位号,被误判为缺少 UID 的物料。随后 CAD 采集又因为某对象 UID 或位号为空而停止。该诊断没有记录第二个对象的字段,因此不能断定它就是 POWER_IN,也不能由此认定工程损坏。
|
||||
- 原生解析只排除明确的 POWER_IN/in.1、POWER_OUT/out.1 无位号命名端口,要求符号类型单一、两份报告端口数量一致;其他不明对象继续执行原有安全检查和 CAD 回退。
|
||||
- CAD 采集按 BOM 位号匹配:无位号对象无法作为替换目标,跳过并记录;可定位的器件仍必须具有 UID。保留全部有位号器件,继续检测不同料号下重复位号。跳过对象的 UID、料号及图页写入日志,最多记录 20 条并显示总数。诊断包现在包含相关运行日志。
|
||||
- 真正的“有位号但缺 UID”单独报告器件身份不完整,不再直接断言工程损坏。替换、核验及 Value/NC 规则不变。
|
||||
- 本版按诊断证据构造报告、使用实际 Windows Script Host 运行模拟 CAD 的真实采集脚本,并执行回归及便携版启动检查。未对真实用户工程进行替换验收。
|
||||
@@ -0,0 +1,10 @@
|
||||
# DxPartReplace 1.2.0-beta.13
|
||||
|
||||
- 排查诊断包 `20261030-132517`:`LDO_S2032_SOT23_1V5` 两次通过后台 CAD 采集,随后工程文件指纹不可用;第二次快照读取 `database/icdb.dat` 时返回拒绝访问。当时同一自有只读 CAD 会话仍存活,但记录不足以证明具体占用者。
|
||||
- 当采集后完整指纹无法读取,仅在当前自有只读 CAD 的工程及工作进程已经通过同一工程和会话检查点确认关闭时,释放本次会话后重新读取完整指纹。设计文件变化仍不能通过;仅数据库会话数据变化仍需两次相同的器件清单。资源释放失败立即停止。若确认释放后仍无法核验,报告并跳过该工程,其他工程可以继续。
|
||||
- 原生清单按 `in.1` / `out.1` 类型识别无位号命名端口,如 `POWER_EN`,并保留两份报告的计数核对;不明、重复或不一致的符号仍回退到 CAD 验证。
|
||||
- 端口名称不限制为某个 CBB 或某个器件,可包含中文及常见标点;CAD 回退对无位号对象也采用通用规则。`20261030-134255` 诊断包中,BOB_XPON、CA_CARD_HIGH 等也出现了工程指纹校验失败;由于日志遗漏,不能断定各工程的具体占用原因相同。
|
||||
- Value 识别增加 `_NC`、`_nc`。旧 Value 含标识时,以新 Part Label 加 `/NC`;新值已有任一有效标识不重复,Part Label 不存在时保留旧 Value。`NC_OPTION`、`_NCM` 等较长文本不会误判。
|
||||
- 诊断包优先收集最近任务、后台记录及主日志的有界尾部;文件数与总大小仍有限制,继续脱敏并排除原始工程及数据库。
|
||||
|
||||
升级保留整个 `data`,配套使用 EXE 与 `_internal`。自动测试使用模拟工程和 Windows Script Host;本次未修改真实 CAD 工程,请在目标电脑先重新导入并核对实际结果。
|
||||
@@ -0,0 +1,14 @@
|
||||
# DxPartReplace 1.2.0-beta.9
|
||||
|
||||
修复强制退出后 CBB 导入被旧后台会话记录长期阻塞的问题。
|
||||
|
||||
- 导入/采集/执行前,在独占批次锁内自动复核已退出进程和资源记录,归并中断的监督记录;不重放旧请求。
|
||||
- 主窗口退出时,后台的人工核验等待可在持久保存中断保护后退出收尾,避免等待已不存在的主窗口。
|
||||
- 已退出监督进程、已退出 CAD/工作进程和空私有桌面的联合证据允许回收残留桌面对象;未知或仍存活的资源保持阻断。
|
||||
- 手动“检查后台会话”不再启动另一个清理监督进程;仍有待处理资源时明确提示,不再一律报告成功。
|
||||
- 保留全部中断写入保护、已保存执行结果和历史数据;原生替换和 Value/NC 规则未修改。
|
||||
- 白色界面优化工程名称/次要信息、导航选中态、状态标记、卡片间距和简短错误提示;器件明细保持主要空间,进度仍可折叠。
|
||||
|
||||
升级:关闭旧版,保存并保留完整 data,将新包 EXE 和 _internal 配套更新。若旧版后台已卡住,先保存其他 CAD 工程并重启一次电脑再使用新版。不要删除保护记录绕过核验。此更新处理软件恢复,不修复已损坏的工程 iCDB 数据库。
|
||||
|
||||
验证记录见 2026-10-29 interrupted-import 实施计划。进程级验证仅使用临时目录、真实 Windows 监督进程和模拟业务,没有打开或修改用户 CAD 工程。
|
||||
@@ -1,12 +0,0 @@
|
||||
# V1.2.1
|
||||
|
||||
本版合并 PR #14 的 DSH 启动错误提示,并提供完整 Windows 便携运行包。
|
||||
|
||||
- 包含整个已安装的 DSH Node 依赖目录、Node 可执行文件、官方前端、任务插件、Qt WebEngine 运行库和全部 UI 图标。
|
||||
- 按维护者的部署要求保留 issue reporter 配置;模型 API 密钥及个人任务数据不随包分发。
|
||||
- 应用标题、Python 项目元数据和 Windows 产品版本统一为 1.2.1。
|
||||
- 新增 Gitea Actions 回归,覆盖平台无关核心逻辑与发行配置。Windows 冻结程序另在构建机验收。
|
||||
|
||||
完整解压 `DxPartReplace-1.2.1.zip`,运行目录内的 `DxPartReplace.exe`。请保留 `_internal` 的完整目录结构,升级前备份旧版 `data`。
|
||||
|
||||
旧版在本版通过验证并公开后转为草稿下架,历史标签保留。运行和云端验证的实际结果见发行附件中的 build-validation.json。
|
||||
@@ -1,50 +0,0 @@
|
||||
# 2026-10-30 优化分支第二轮审查
|
||||
|
||||
本轮在 `.worktrees/project-optimization` 的 `codex/project-optimization` 分支执行。主工作区继续使用 DSH 分支,两个工作目录分别维护各自提交。
|
||||
|
||||
## 已复现并修复的问题
|
||||
|
||||
| 问题 | 触发条件和原因 | 修复 |
|
||||
| --- | --- | --- |
|
||||
| P1:历史资源记录使界面卡顿 | `_update_gates()` 同步调用资源扫描,搜索、选择规则和执行状态更新都会读取全部历史 JSON。500 条已释放记录的一次扫描约需 1.57–1.65 秒 | 新增 `ui/resource_status.py`,后台读取并保留状态快照;初始化、操作收尾和定时复查更新快照,按钮刷新直接读取快照 |
|
||||
| P1:异常退出丢失 BOM 逐行诊断 | `_finish_response()` 在资源复核通过后发现 CAD 退出异常,创建新的 `application_shutdown_failed` 错误,却没有携带原业务错误和 BOM 报告 | 在 `supervisor_result.py` 统一构造退出错误,保留原错误、清理错误和逐行报告;移除报告中的可执行预览 |
|
||||
| P2:规则窗口销毁后访问已释放控件 | 封装读取仍在运行时销毁规则窗口,成功和失败回调均只判断逻辑关闭标记,未判断 Qt 对象是否有效 | 回调先检查 `isValid(self)`,丢弃销毁后的结果;两条路径均有实际 Qt 生命周期回归 |
|
||||
| P2:已完成批次仍显示可执行按钮 | 按钮只判断批次存在;处理函数重新筛选任务后发现没有剩余任务,直接返回 | 抽取 `pending_batch_tasks()`,按钮门控、执行和确认范围共用待执行任务列表 |
|
||||
|
||||
资源快照采用保守处理:首次读取未完成或读取失败时阻断执行;操作结束触发的刷新会合并,操作前的旧快照不能解除门禁。周期检查不会取消慢读取。窗口关闭会停止周期检查并丢弃迟到结果。服务层原有执行前资源检查继续作为最终校验。
|
||||
|
||||
## 测量范围
|
||||
|
||||
使用独立临时目录创建合法的已释放资源记录,无 CAD 进程和工程写入。原同步扫描测得:
|
||||
|
||||
- 0 条:三次分别为 2.68、1.83、1.41 毫秒。
|
||||
- 100 条:293.55、277.36、313.80 毫秒。
|
||||
- 500 条:1650.06、1626.25、1569.35 毫秒。
|
||||
|
||||
接入后台快照后,在真实 `TrialTaskCenterWindow`、`TaskCenterService` 和 `TaskStore` 的空任务窗口中,500 条历史记录下连续调用按钮门控 100 次,总计 6.63 毫秒,期间文件扫描次数为 0。另有已选中任务的 Qt 回归验证后台慢读取期间仍能搜索和响应事件。该结果证明 GUI 热路径移除了扫描,不表示磁盘扫描本身变快,也不代表实际 CAD 替换速度。
|
||||
|
||||
## 前次结论修正
|
||||
|
||||
前次把停止事件轮询从 0.1 秒改成 0.01 秒,并将一次时序测试失败解释为阻塞根因,证据不足。`Event.wait()` 会在事件设置后立即唤醒;初次保护失败后的进度文件写入可能延后重试,固定等待 0.25 秒不能证明保护重试没有发生。
|
||||
|
||||
本轮恢复 0.1 秒等待,回归测试等待明确的强制结束拒绝状态,再检查线程仍存活和保护写入确已重试。不会把这项时序调整计作资源泄漏修复。
|
||||
|
||||
## 测试入口修正
|
||||
|
||||
全仓收集发现 `tests/ui/test_execution_feedback.py` 与 `tests/v1_1/test_execution_feedback.py` 的模块名冲突。UI 文件更名为 `test_ui_execution_feedback.py` 并更新文档引用。
|
||||
|
||||
默认 `python -m pytest -q` 仅覆盖 `tests/v1_1`,不能称为整个仓库测试。全仓历史测试曾启动,随后为实施新确认的 GUI 阻塞修复而主动停止,未将该次运行记作完整通过。当前验证覆盖新版测试、UI 和项目发布要求的安全子集。
|
||||
|
||||
本轮未进行真实 DxDesigner 工程替换或冻结包验收;现场桌面引用残留仍需实际故障机器的进程与句柄证据。
|
||||
|
||||
## 最终验证
|
||||
|
||||
```powershell
|
||||
python -m pytest -q tests/v1_1 tests/ui tests/part_replace/test_verification.py tests/trial_task_center/test_execution_safety.py tests/trial_task_center/test_application.py --durations=5
|
||||
```
|
||||
|
||||
结果:960 passed,1 项既有 pywinauto STA 警告,462.49 秒。此命令覆盖新版测试、UI 和发布安全子集。
|
||||
|
||||
安全停止的真实子进程测试曾在收到首条阶段进度前触发 0.6 秒启动超时,未进入其要验证的保存/强制结束路径。测试现将启动预算与阶段无进度时限区分,并断言目标阶段确实被接收;保存和只读阶段的原 0.3 秒时限继续有效。生产监控超时参数未修改。
|
||||
|
||||
`python -m compileall -q src` 和 `git diff --check` 均通过。
|
||||
@@ -1,73 +0,0 @@
|
||||
{
|
||||
"browser": "156.0.8078.73",
|
||||
"checks": [
|
||||
{
|
||||
"test": "browser-layout-ready",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900
|
||||
},
|
||||
{
|
||||
"test": "browser-layout-running",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900
|
||||
},
|
||||
{
|
||||
"test": "browser-layout-recovery",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900
|
||||
},
|
||||
{
|
||||
"test": "browser-layout-assistant",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900
|
||||
},
|
||||
{
|
||||
"test": "browser-review-visible",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "escape-cancels-without-execution",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-batch-guard",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-confirm-starts-preparation",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-pause-keeps-running",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-verification-before-pause",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-pause-after-verification",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-solid-material-fallback",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-compact-layout",
|
||||
"ok": true,
|
||||
"width": 980,
|
||||
"height": 700
|
||||
},
|
||||
{
|
||||
"test": "browser-compact-review",
|
||||
"ok": true
|
||||
}
|
||||
],
|
||||
"pageErrors": [],
|
||||
"screenshots": "Chrome headless, screenshot waits for compositor; 1440x900 and 980x700."
|
||||
}
|
||||
|
Before Width: | Height: | Size: 128 KiB |
|
Before Width: | Height: | Size: 108 KiB |
@@ -1,39 +0,0 @@
|
||||
# 细节打磨:文字、交互和表格
|
||||
|
||||
用户要求三方面一起打磨,保留已认可的布局与原生磨砂。
|
||||
|
||||
## 文字、间距与状态
|
||||
|
||||
- 工程标题过长时省略显示,完整名称保留在提示中;不会把小窗口撑宽。
|
||||
- 工程状态保持单行并右对齐,避免“待配置”等短词中途折行;长状态有完整提示。
|
||||
- 按钮图标统一 16px;输入框、按钮、菜单和表格补充焦点、按下、选中与禁用反馈。
|
||||
- 表头与单元格提示说明只读字段、完整内容、UID 和工程身份。
|
||||
|
||||
## 搜索与批量编辑
|
||||
|
||||
- 搜索显示“匹配 X / 总数”,无匹配时显示清楚的空状态;清空后恢复全部行。
|
||||
- 没有查询或结果时,下一条操作不再可用;表格空状态不截获鼠标事件。
|
||||
- 批量填写显示选中行数,未选行或未填新料号时禁用。行选中用于编辑,替换勾选用于计划,两者在提示中区分。
|
||||
|
||||
## 保存与键盘
|
||||
|
||||
- 计划旁显示已保存 / 未保存;没有修改时禁用重复保存。本批 BOM 预览仍保留本批保存范围。
|
||||
- 支持 `Ctrl+F` 定位搜索、`F3` 下一条、`Ctrl+S` 保存。快捷键受当前编辑状态和原有权限门禁约束。
|
||||
- 实际验证并修正了单元格未提交时的保存问题:快捷键先提交当前编辑器,再获取保存快照;鼠标保存也能读取当前输入值。
|
||||
- 编辑中的临时输入参与未保存检测与执行门禁,但不提前改变模型;`Esc` 或放弃操作关闭编辑器并保留原值。
|
||||
|
||||
## 验证
|
||||
|
||||
相关 UI、状态与 BOM 回归 **131 项通过**;最终文字尺寸/对齐调整后,材质、布局与细节的针对性检查 **24 项通过**。新增细节用例覆盖真实单元格编辑、鼠标保存、键盘保存、取消、放弃、只读状态、匹配反馈、批量填写和长标题。
|
||||
|
||||
独立静态审查确认先前的 Ctrl+S 问题已修正,未发现新的重要编辑器生命周期或保存门禁问题。
|
||||
|
||||
原生验收继续使用临时示例数据与独立活动背板,没有启动 CAD。左右磨砂随背板变化,表格保持不透明;小窗口与实色回退通过。详见 [polish-acceptance.json](polish-acceptance.json)。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
源代码已更新,便携 EXE 未重新构建;本机原生验收环境仍为 Windows 11 build 26200、125% 缩放。
|
||||
@@ -1,68 +0,0 @@
|
||||
# R5:GitHub 毛玻璃实现调研与原生实测
|
||||
|
||||
日期:2026-10-30。分支:`codex/ui-update`。
|
||||
|
||||
结论:当前 PySide6 工具应优先验证 **Windows 原生 Acrylic**,将真实窗口背后的内容交给系统合成器模糊。需要 Apple 式边缘折射时,另用 SVG/着色器处理应用内的浮层,不能把半透明白色、模糊、Mica 和折射统称为同一种效果。
|
||||
|
||||
此前 R4 页面确实使用了浏览器背景模糊,但背景接近纯色、叠加白色过厚,缺少可观察的透射细节;它也没有启用正式 Qt 窗口的系统背景模糊。不能用那张图证明原生毛玻璃已经完成。
|
||||
|
||||
## 实际参考的 8 个项目
|
||||
|
||||
通过 GitHub 仓库 API 读取 README、仓库树和关键源码。搜索 API 遇到速率限制,raw 域名连接失败后,改用仓库内容/Blob API,成功读取了下列材料。本文没有把检索失败的项目计入参考数量。
|
||||
|
||||
| 项目 | 已核对的实现 / 文档 | 可借鉴内容 | 与本项目的关系 |
|
||||
| --- | --- | --- | --- |
|
||||
| [PyQt-Frameless-Window](https://github.com/zhiyiYo/PyQt-Frameless-Window) | [`setAcrylicEffect`](https://github.com/zhiyiYo/PyQt-Frameless-Window/blob/master/qframelesswindow/windows/window_effect.py#L53) 调用 `SetWindowCompositionAttribute`,AccentState 使用 Acrylic。README 提供 PySide6 分支。 | 真正的窗口背景模糊;窗口边框、命中与拖动处理。 | 最接近现有 Python / Qt 栈。GPLv3;本轮没有复制该库代码或引入依赖。 |
|
||||
| [PythonBlurBehind](https://github.com/Peticali/PythonBlurBehind) | [`blur()`](https://github.com/Peticali/PythonBlurBehind/blob/main/blurWindow/blurWindow.py#L115) 明确区分 BlurBehind 与 Acrylic,并对 HWND 应用效果。 | 小范围 ctypes 与系统合成边界,适合先做原生验证。 | MIT。原生小样采用同类 Windows API 机制,以独立探针验证,不调用 CAD。 |
|
||||
| [WinUI Gallery](https://github.com/microsoft/WinUI-Gallery) | [`AcrylicPage.xaml`](https://github.com/microsoft/WinUI-Gallery/blob/main/WinUIGallery/Samples/Acrylic/AcrylicPage.xaml#L41) 区分应用内 Acrylic 与系统背景;[`DesktopAcrylicController`](https://github.com/microsoft/WinUI-Gallery/blob/main/WinUIGallery/Samples/SystemBackdrops/SystemBackdropsDesktopacryliccontroller.txt) 检查支持并管理资源生命周期。 | 染色、亮度、回退、应用内 / 窗口背后的不同采样来源。 | MIT。用于材质规范参考,不需要把 Qt 重写成 WinUI。 |
|
||||
| [PyQt-Fluent-Widgets](https://github.com/zhiyiYo/PyQt-Fluent-Widgets) | [`AcrylicBrush`](https://github.com/zhiyiYo/PyQt-Fluent-Widgets/blob/master/qfluentwidgets/components/widgets/acrylic_label.py#L163) 使用背景采集、Gaussian blur、tint、luminosity 和 noise;部分 Acrylic 是截图处理。 | 材质由模糊、染色、亮度与纹理多层组合;不能只画一层白色。 | GPLv3 / 商业许可。必须区分其图像材质和实时原生 Acrylic;不能看到 Acrylic 类名就认为全是系统合成。 |
|
||||
| [window-vibrancy](https://github.com/tauri-apps/window-vibrancy) | [`apply_acrylic`](https://github.com/tauri-apps/window-vibrancy/blob/dev/src/windows.rs#L62) 在合适版本使用 `DWMWA_SYSTEMBACKDROP_TYPE / DWMSBT_TRANSIENTWINDOW`,否则走 Accent;Mica 有单独接口。 | Windows 版本判断、不同 API 路径及清理机制。 | Apache-2.0。Rust/Tauri 不能直接装进 PySide6,但系统 API 的技术路线值得对照。 |
|
||||
| [QWindowKit](https://github.com/stdware/qwindowkit) | README 列出 `acrylic-material`、`dwm-blur`、`mica`,并讲明 Qt 私有 API、原生子窗口、Snap 与命中处理;不同平台的 glass 属性不同。 | 窗口外壳需要与材质一起设计,不能破坏拖动、缩放、系统菜单与 Snap。 | Apache-2.0;本轮核对其 README。C++ 工程与 Python 绑定成本需单独评估,不自动引入。旧 FramelessHelper 已指向该项目。 |
|
||||
| [liquid-glass-react](https://github.com/rdev/liquid-glass-react) | [`src/index.tsx`](https://github.com/rdev/liquid-glass-react/blob/master/src/index.tsx#L35) 包含位移贴图、三通道位移和颜色合并;背景模糊是另一层。 | 边缘折射、可调磨砂、轻微色散,不只是圆角和阴影。 | MIT。可参考视觉与滤镜;它作用于网页内容,不是 Windows 桌面背景。README 说明 Safari/Firefox 位移支持有局限。 |
|
||||
| [shuding/liquid-glass](https://github.com/shuding/liquid-glass) | [`liquid-glass.js`](https://github.com/shuding/liquid-glass/blob/main/liquid-glass.js#L69) 使用 `backdrop-filter:url(...)` 与 `feDisplacementMap`;按几何函数生成位移贴图。 | 用真实背板内容测试边缘弯折;位移贴图的 R/G 控制横向与纵向采样。 | MIT。本轮验证页使用自行生成的位移贴图,没有复制项目源码。 |
|
||||
|
||||
源码核对记录及文件 Blob SHA 见 [github-material-sources.json](github-material-sources.json)。许可信息来自读取时的仓库元数据/README;本轮未安装上述库。
|
||||
|
||||
## 如何区分几种效果
|
||||
|
||||
| 效果 | 背后内容是什么 | 观察方式 |
|
||||
| --- | --- | --- |
|
||||
| 普通透明 | 原始内容直接 alpha 混合 | 背后的字和细线仍清晰,容易穿过前景文字。 |
|
||||
| 网页背景磨砂 | 同一页面中、元素背后的图像 | 动背板或滚动内容,模糊颜色随之变化;不能看到浏览器外的窗口。 |
|
||||
| 原生 Acrylic | Windows 合成器提供的窗口后方内容,具体行为受系统与窗口状态影响 | 用独立的真实背景窗口换色/移动,前景材质跟随变化。 |
|
||||
| Mica | 通常从桌面壁纸等来源形成的窗口底材 | 不应期待它像透明玻璃一样实时折射所有背后窗口。 |
|
||||
| Liquid Glass 视觉模拟 | 对采样图像做边缘位移,叠加磨砂、高光等 | 背后的直线在边缘弯折;强度过高会影响工程数据识读。 |
|
||||
|
||||
## 本机原生实测
|
||||
|
||||
本机 Windows 11 build 26200。可复现探针:[native-acrylic-probe.py](native-acrylic-probe.py)。它只创建自有测试窗口,前景不绘制背景截图,使用系统 API 配置效果后,捕获这些窗口组成的测试区域;截图前检查区域中的窗口归属,发现遮挡即取消保存。
|
||||
|
||||
**左侧是普通透明,右侧启用 Accent Acrylic。** 两个前景窗口背后的测试图案一致。原生 Acrylic 明显滤除了竖线和背景字;更换背板颜色后,透入的颜色随之改变。
|
||||
|
||||

|
||||
|
||||
[查看背板变化动图](native-acrylic-live.gif) · [第二种背板截图](native-acrylic-b.png)
|
||||
|
||||
验证结果:`SetWindowCompositionAttribute` 返回成功;截图中右侧背景水平边缘能量约为左侧的 1/6.35,换色后右侧像素也发生变化。这是对测试图案的图像差异检查,不是通用材质质量评分。
|
||||
|
||||
**还发现了一条未跑通的路径:** 清除 Accent 后,单独设置 `DWMWA_SYSTEMBACKDROP_TYPE=3` 返回 HRESULT 0,但该 Qt 小样的实际输出是灰色实底。见 [DWM 路径截图](native-dwm-acrylic.png)。因此不能仅凭 API 返回成功宣称真实玻璃已启用,需要继续验证 Qt 窗口表面、DWM 扩展区域与系统设置。
|
||||
|
||||
原生调用日志见 [native-acrylic-verification.json](native-acrylic-verification.json);像素与动态背板验证见 [material-verification.json](material-verification.json)。没有启动 CAD、读写工程或改变系统全局透明度设置。
|
||||
|
||||
## 可交互材质验证台
|
||||
|
||||
[打开 material-lab.html](material-lab.html)。三列使用相同背板,依次展示:只有透明、背景磨砂、低磨砂与边缘折射。
|
||||
|
||||
可以拖动背景位置、调整磨砂强度、关闭/打开模糊与折射。背板由网页图形与文本实时组成;没有用预先模糊的背景图冒充采样。该页是浏览器机制验证,原生实测在上面的独立探针中。
|
||||
|
||||

|
||||
|
||||
Chrome 实测确认:磨砂滤镜为 `blur(18px) saturate(1.25)`,关闭后为 `none`;SVG 位移引用有效;改变背板位置会改变三列可见像素。效果开关在透明对照列的影响很小,而磨砂/折射列发生明显变化。1000px 页面宽度无横向溢出,浏览器无页面脚本错误。滤镜像素变化证明效果参与渲染,不代表它等同于 Apple 原生材质或所有浏览器效果一致。
|
||||
|
||||
## 对现有工程工具的建议
|
||||
|
||||
建议保留现有 PySide6 业务层和 SVG 图标,将外壳的侧栏、顶栏和短暂浮层接入已实测有视觉效果的原生模糊路径。料号表格使用独立清晰内容面。不要给整窗口设置低 opacity,也不要把普通白色底加阴影当作 Acrylic。
|
||||
|
||||
Apple 式折射适合少量浮层与分段控件;大面积表格不使用明显几何位移。若要在原生 Qt 中加入折射,需要 Qt Quick ShaderEffect / 可控的合成层等进一步验证;浏览器 SVG 位移不能原样翻译成 QWidget 的 QSS。
|
||||
|
||||
后续正式接入仍需验证:Qt/PySide6 版本、DWM 系统回退、透明度/高对比设置、激活状态、窗口拖动与 Snap、高 DPI、多显示器、远程桌面、打包以及现有 DSH WebEngine 子窗口的兼容性。本轮完成的是调研、机制对比和原生小样,未更改正式 UI 或执行状态机。
|
||||
|
Before Width: | Height: | Size: 34 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1120" height="524" viewBox="0 0 1120 524"><rect width="1120" height="524" fill="white"/><text x="24" y="34" font-family="Segoe UI,Arial" font-size="18" fill="#34465f">DxPartReplace / SVG icon set</text><text x="24" y="54" font-family="Segoe UI,Arial" font-size="11" fill="#8b98a9">32 original symbols / 20 x 20 grid / 1.6 stroke / currentColor</text><rect x="24" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="66" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 16V4M5.5 8.5 10 4l4.5 4.5"/></g></svg><text x="80" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">arrow-up</text><rect x="160" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="202" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 3.5h10a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H9l-4.5 3v-3a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z"/><path d="M6.5 7.5h7m-7 3h4"/></g></svg><text x="216" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">chat</text><rect x="296" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="338" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="m6.5 10 2.5 2.5 4.5-5"/></g></svg><text x="352" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">check-circle</text><rect x="432" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="474" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m4.5 10 3.5 3.5 7.5-8"/></g></svg><text x="488" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">check</text><rect x="568" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="610" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m8 5 5 5-5 5"/></g></svg><text x="624" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">chevron</text><rect x="704" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="746" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="5" width="10" height="10" rx="2"/><path d="M8 2v3m4-3v3m-4 10v3m4-3v3M2 8h3m-3 4h3m10-4h3m-3 4h3M8 8h4v4H8Z"/></g></svg><text x="760" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">circuit</text><rect x="840" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="882" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="M10 5.5v5l3 1.5"/></g></svg><text x="896" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">clock</text><rect x="976" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="1018" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m5 5 10 10M15 5 5 15"/></g></svg><text x="1032" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">close</text><rect x="24" y="184" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="66" y="200" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M7.5 3.5v13m5-13v13"/></g></svg><text x="80" y="253" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">columns</text><rect x="160" y="184" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="202" y="200" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="7" y="7" width="10" height="10" rx="2"/><path d="M12.5 4V3H3v9.5h1"/></g></svg><text x="216" y="253" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">copy</text><rect x="296" y="184" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="338" y="200" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-Line truncated
|
||||
|
Before Width: | Height: | Size: 14 KiB |
@@ -1,5 +0,0 @@
|
||||
# SVG icons
|
||||
|
||||
Original 20 × 20 SVG icons for the DxPartReplace UI concept. Consistent 1.6 unit strokes, rounded caps and joins; color inherits `currentColor`. These are original drawings, not Apple SF Symbols.
|
||||
|
||||
The preview embeds the same shapes as an SVG symbol sprite; the individual files can be used by Qt SVG rendering when the production interface is implemented.
|
||||
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 16V4M5.5 8.5 10 4l4.5 4.5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 215 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 3.5h10a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H9l-4.5 3v-3a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z"/><path d="M6.5 7.5h7m-7 3h4"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 298 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="m6.5 10 2.5 2.5 4.5-5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 241 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m4.5 10 3.5 3.5 7.5-8"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 207 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m8 5 5 5-5 5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 198 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="5" width="10" height="10" rx="2"/><path d="M8 2v3m4-3v3m-4 10v3m4-3v3M2 8h3m-3 4h3m10-4h3m-3 4h3M8 8h4v4H8Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 299 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="M10 5.5v5l3 1.5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 235 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m5 5 10 10M15 5 5 15"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 206 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M7.5 3.5v13m5-13v13"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 258 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="7" y="7" width="10" height="10" rx="2"/><path d="M12.5 4V3H3v9.5h1"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 252 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 2.5v10m-3.5-3.5 3.5 3.5 3.5-3.5M3.5 13v4h13v-4"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 236 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M2.5 6a2 2 0 0 1 2-2h4l2 2h5a2 2 0 0 1 2 2v6.5a2 2 0 0 1-2 2h-11a2 2 0 0 1-2-2Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 265 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="5" height="5" rx="1"/><rect x="12" y="3" width="5" height="5" rx="1"/><rect x="3" y="12" width="5" height="5" rx="1"/><rect x="12" y="12" width="5" height="5" rx="1"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 366 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="M10 9v5m0-8h.01"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 235 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2.5h6l4 4v11H4v-15h2Zm6 0v4h4M7 10h6m-6 3.5h6"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 234 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="4" cy="10" r=".9" fill="currentColor" stroke="none"/><circle cx="10" cy="10" r=".9" fill="currentColor" stroke="none"/><circle cx="16" cy="10" r=".9" fill="currentColor" stroke="none"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 371 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 4v12m6-12v12" stroke-width="2.5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 220 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m7 3.5 9 6.5-9 6.5Z" fill="currentColor" stroke="none"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 239 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 4v12M4 10h12"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 202 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="2.5" width="12" height="15" rx="2"/><path d="M7 6h6M7 10h3m0 0v4m0-4h3m-6 4h6"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 269 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M16.5 7A7 7 0 1 0 17 12M16.5 3v4h-4"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 221 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 5h10M7 10h10M7 15h10"/><circle cx="3.5" cy="5" r=".6"/><circle cx="3.5" cy="10" r=".6"/><circle cx="3.5" cy="15" r=".6"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 307 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3h12l2 2v12H3ZM6 3v5h7V3M6 17v-5h8v5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 225 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 3H3v4m10-4h4v4M3 13v4h4m10-4v4h-4M6 10h8m-6-3v6m4-6v6"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 242 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="8.5" cy="8.5" r="5.5"/><path d="m12.5 12.5 4.5 4.5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 239 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M7 3.5v13M4.5 7h.1m-.1 3h.1"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 266 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 5h3m4 0h7M3 10h8m4 0h2M3 15h2m4 0h8"/><circle cx="8" cy="5" r="2"/><circle cx="13" cy="10" r="2"/><circle cx="7" cy="15" r="2"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 314 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M6 4v12m-3-3 3 3 3-3M13 5h4m-4 5h3m-3 5h2"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 227 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M2.5 8h15M8 8v8.5m4-8.5v8.5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 266 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3.5 5.5h13M7 5V3h6v2M5 5.5l.8 11h8.4l.8-11M8 8.5v5m4-5v5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 243 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 12.5v-10M6.5 6 10 2.5 13.5 6M3.5 13v4h13v-4"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 233 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m10 2.5 8 14H2Zm0 5v4.5m0 2.5h.01"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 219 B |
@@ -1,21 +0,0 @@
|
||||
{
|
||||
"cad_started": false,
|
||||
"sample_data_only": true,
|
||||
"ownership_checked": true,
|
||||
"os_build": 26200,
|
||||
"native_enabled": true,
|
||||
"sidebar_backdrop_difference": 21.323206901227035,
|
||||
"opaque_table_backdrop_difference": 0.0,
|
||||
"solid_sidebar_mean": [
|
||||
233.0,
|
||||
238.0,
|
||||
244.0
|
||||
],
|
||||
"solid_fallback": true,
|
||||
"compact_size": [
|
||||
980,
|
||||
700
|
||||
],
|
||||
"compact_table_height": 131,
|
||||
"options_exposed": true
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
# 第二种背景磨砂:正式 PySide6 接入
|
||||
|
||||
> 交互与表格反馈已继续完成 [最新细节打磨](detail-polish.md),最终样例见该记录。
|
||||
|
||||
> 正式界面现已继续完成 [按钮、布局与右侧磨砂补全](layout-refinement.md),当前截图与验收数值以该记录为准。
|
||||
|
||||
2026-10-30。工作分支 `codex/ui-update`。用户明确批准材质对比页中的第二种“背景磨砂”,本次已将它接入正式 `TrialTaskCenterWindow`。
|
||||
|
||||
## 已实现
|
||||
|
||||
- 通过 ctypes 对窗口自身启用 Windows Acrylic;使用事先在本机验证可见效果的 `SetWindowCompositionAttribute` 路径。没有把浏览器 CSS 当作原生窗口背景模糊,也没有用背景截图充当材质。
|
||||
- 保留系统窗口框架,顶栏与任务侧栏响应真实窗口后的内容。没有使用全窗口 opacity。
|
||||
- 高对比度、系统透明度关闭、远程会话、非 Windows / 离屏、不支持的版本、接口失败与用户选择减少透明度时回退实色。可见窗口定期复查系统策略;只影响本窗口,不写系统设置。
|
||||
- alpha 窗口在回退时显式绘制实色底,避免原生窗口在禁用合成后露出黑色区域。
|
||||
- 32 个原创新 SVG 文件纳入正式应用 assets,沿用原有 package-data 规则。导航、执行、保存、导入导出、诊断和任务操作接入图标,并保留操作文字 / 提示。
|
||||
- 工程名称和路径置于表格上方;原有 Value 与关闭归档选项放入可展开区域;缩窄布局后保留位号表和操作空间。
|
||||
|
||||
现有执行状态机、CAD 服务与 DSH 后端未作为本次材质修改的一部分重写。工作区中已有的其他 DSH 生命周期修改被保留,本次没有替它们提交或发布。
|
||||
|
||||
## 测试
|
||||
|
||||
相关命令:
|
||||
|
||||
```powershell
|
||||
python -m pytest tests/ui tests/v1_1/test_ui_workspace.py tests/v1_1/test_ui_remediation.py tests/v1_1/test_safe_stop_ui.py tests/v1_1/test_target_table.py tests/v1_1/test_ui_operation_lifecycle.py tests/v1_1/test_task_navigation.py -q --basetemp=build/pytest-acrylic-final
|
||||
```
|
||||
|
||||
结果:**103 passed**。覆盖材质策略 / 回退、偏好持久化、句柄变化、SVG 控件、现有 UI 流程、窄窗口、草稿、过滤/排序与安全暂停等相关行为。
|
||||
|
||||
独立静态代码审查未发现本次范围中的重要生产问题;指出的 Windows 专属策略测试缺少平台跳过标记已修正。
|
||||
|
||||
实机验收命令:
|
||||
|
||||
```powershell
|
||||
python tools/accept_acrylic_ui.py --output build/acrylic-acceptance
|
||||
```
|
||||
|
||||
验收使用临时示例工程、库存和已保存计划,没有启动 CAD。实际窗口置于自有实时背板上,截图区域在保存前检查窗口归属。验证环境为 Windows 11 build 26200,125% 缩放。
|
||||
|
||||
| 项目 | 实测 |
|
||||
| --- | --- |
|
||||
| 原生 Acrylic | 已启用,截图可见背景模糊 |
|
||||
| 背板换色时侧栏变化 | 平均像素差约 21.32 |
|
||||
| 同时表格区域变化 | 平均像素差 0.0,保持实色 |
|
||||
| 减少透明度后的侧栏 | 实色 RGB 均值 233 / 238 / 244,无黑色底 |
|
||||
| 980×700 | 窗口尺寸保持,位号表 viewport 高度 131 逻辑像素 |
|
||||
| Value / 归档选项 | 可从标题旁入口展开 |
|
||||
|
||||
数值是固定示例区域的图像比较,不是通用性能或视觉质量评分。日志见 [implementation-acceptance.json](implementation-acceptance.json)。
|
||||
|
||||
## 实际窗口截图
|
||||
|
||||
以下是正式 Qt 窗口的系统合成截图,已使用示例工程数据,不是 HTML 预览。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 交付边界
|
||||
|
||||
已更新源代码与打包资产,尚未重新构建便携 EXE。旧版便携包不会自动更新外观。本轮未做真实 CAD 写入,也未完成 Windows 10、多显示器、不同显卡驱动、所有缩放比例与发布包的跨环境验证。
|
||||
|
||||
窗口使用 Windows 合成接口;不同系统设置与远程环境下可能回退为实色。当前 DSH 内嵌前端继续使用其自身界面,只统一外层导航,不宣称已重写官方 Harness 的页面。
|
||||
|
Before Width: | Height: | Size: 328 KiB |
|
Before Width: | Height: | Size: 381 KiB |
|
Before Width: | Height: | Size: 379 KiB |
|
Before Width: | Height: | Size: 125 KiB |
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"cad_started": false,
|
||||
"sample_data_only": true,
|
||||
"ownership_checked": true,
|
||||
"os_build": 26200,
|
||||
"native_enabled": true,
|
||||
"sidebar_backdrop_difference": 21.82688605017125,
|
||||
"opaque_table_backdrop_difference": 0.0,
|
||||
"right_header_backdrop_difference": 7.638507661558961,
|
||||
"right_execution_backdrop_difference": 12.32960451977401,
|
||||
"solid_sidebar_mean": [
|
||||
233.0,
|
||||
238.0,
|
||||
244.0
|
||||
],
|
||||
"solid_fallback": true,
|
||||
"compact_size": [
|
||||
980,
|
||||
700
|
||||
],
|
||||
"compact_table_height": 194,
|
||||
"options_exposed": true
|
||||
}
|
||||
|
Before Width: | Height: | Size: 660 KiB |
|
Before Width: | Height: | Size: 809 KiB |
|
Before Width: | Height: | Size: 803 KiB |
@@ -1,35 +0,0 @@
|
||||
# 正式界面:按钮、布局与右侧磨砂补全
|
||||
|
||||
> 交互与表格反馈已继续完成 [最新细节打磨](detail-polish.md),最终样例见该记录。
|
||||
|
||||
用户反馈上一轮只落地外壳和图标,按钮布局仍旧、右侧磨砂被白底遮挡。本轮修改正式 PySide6 组件,保留已有服务与执行门禁。
|
||||
|
||||
## 已改变的布局
|
||||
|
||||
- 任务侧栏顶部直接新建;编辑、恢复、顺序调整和删除进入任务管理菜单,显示排序单独提供菜单。任务项用 delegate 分层显示名称、状态、图标与顺序,不添加逐行 QWidget。完整名称和路径继续保留在数据与提示中。
|
||||
- 搜索、BOM 模板、BOM 导入和位号采集合并到一条工具栏。搜索支持输入过滤、清空和下一条;低频位号 Excel 工具与搜索命令进入更多菜单。
|
||||
- 保存计划移至表格底部,和逐行编辑、批量填写形成连续操作区。
|
||||
- 执行区只显示当前状态的直接动作。普通执行、恢复、重试、开始新一轮与安全暂停按已有状态门禁显示。诊断、资源清理、轮次证据、布局和强制结束进入更多操作菜单;强制结束保留原确认流程。
|
||||
- 工程状态与设置位于标题行,工程重新读取收进菜单,路径保留复制入口。
|
||||
|
||||
## 右侧材质
|
||||
|
||||
移除工作区与标签页的大面积不透明白底。右侧工程标题、搜索工具栏、编辑工具区和执行面板现在共同透出 Windows 原生 Acrylic。表格 viewport 继续保持实色,交互菜单与错误/恢复提示仍须清晰可读。
|
||||
|
||||
底层使用上一轮已验证的 Windows 合成实现,不通过整窗口 opacity 制造效果;减少透明度仍切回实色。
|
||||
|
||||
## 命令安全与验证
|
||||
|
||||
菜单通过现有按钮对象执行,菜单展示时同步文字、图标、启用与显式可见状态;触发时再次检查源按钮当前状态。隐藏按钮保留在原面板的隐藏存储容器内,继续受原业务门禁控制。没有复制执行逻辑,也没有让过期菜单状态绕过禁用操作。
|
||||
|
||||
新增 `test_workspace_redesign.py` 覆盖菜单触发与禁用、任务管理菜单、工具栏与保存位置、执行维护菜单、小窗口操作可见性。相关回归合计 **108 项通过**。独立静态审查未发现重要的命令路由、状态或可见性问题。
|
||||
|
||||
原生验收新增了右侧两个采样区:工程路径/标题区域和执行区。改变自有背板时,左右外壳都必须变化;表格区域仍须不变。Windows 11 build 26200、125% 缩放下通过,980×700 表格 viewport 约 194 逻辑像素。
|
||||
|
||||
本次验收使用临时示例数据,没有启动 CAD。详细数值见 [layout-acceptance.json](layout-acceptance.json)。旧窗口会通过正常关闭流程重开;未保存或运行中的关闭保护不会被自动绕过。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
源代码界面已更新,便携 EXE 尚未重新构建。Windows 10、不同驱动、远程桌面及打包后的效果仍需对应环境验证。
|
||||
|
Before Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 547 KiB |
|
Before Width: | Height: | Size: 478 KiB |
@@ -1,23 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>毛玻璃机制对比 · DxPartReplace</title>
|
||||
<style>
|
||||
*{box-sizing:border-box}body{margin:0;background:#f4f5f7;color:#2c3542;font:13px "Segoe UI","Microsoft YaHei UI",sans-serif}header{padding:30px 38px 22px;border-bottom:1px solid #e0e4ea;background:white;display:flex;align-items:center;gap:25px}h1{font-size:23px;font-weight:600;letter-spacing:-.5px;margin:0 0 8px}header p{color:#7b8594;margin:0;font-size:12px}.tag{margin-left:auto;border:1px solid #dfe6ee;padding:6px 10px;border-radius:6px;font-size:11px;color:#8190a3}.controls{display:flex;align-items:center;gap:22px;margin:24px 38px 20px;padding:16px 20px;background:white;border:1px solid #e1e6ee;border-radius:12px}.controls label{display:flex;align-items:center;gap:10px;font-size:12px;color:#748297}input{accent-color:#526c8d}button{background:#fff;border:1px solid #dce3ec;border-radius:7px;padding:7px 12px;font:inherit;font-size:12px;color:#647b99;cursor:pointer}.controls button{margin-left:auto}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:0 38px}.card{min-width:0;background:#fff;border:1px solid #e0e5ec;border-radius:15px;overflow:hidden}.cardhead{padding:17px 18px 15px}.cardhead h2{font-size:14px;font-weight:600;margin:0 0 6px}.cardhead p{color:#8795a7;font-size:11px;margin:0;line-height:1.6}.scene{position:relative;height:420px;background:#e1e6ed;overflow:hidden;border-top:1px solid #e6eaf0;border-bottom:1px solid #e6eaf0}.backdrop{position:absolute;inset:-120px;transform:translateX(var(--shift,0px));background:repeating-linear-gradient(90deg,transparent 0 22px,#ffffff99 23px 24px),linear-gradient(120deg,#5984b6,#a7c9c6 48%,#d3a6a0);display:flex;flex-direction:column;padding:130px 135px;gap:14px;color:#284967;font:15px Consolas,monospace;white-space:nowrap}.backdrop strong{font:600 44px "Segoe UI",sans-serif;letter-spacing:-2px;margin:0 0 20px}.backdrop span{color:white;text-shadow:0 1px 1px #1e395733}.glass{position:absolute;left:28px;right:28px;top:56px;bottom:47px;background:rgba(255,255,255,.12);border:1px solid #ffffffc4;border-radius:22px;box-shadow:inset 0 1px 0 #ffffffdb,0 14px 35px #29445f19;padding:23px 20px;color:#213e5a}.glass h3{font-size:17px;margin:0 0 6px;font-weight:600}.glass p{font-size:11px;margin:0;color:#3b5d7e}.sample{margin-top:85px}.sample>div{background:#ffffff44;border:1px solid #ffffff86;border-radius:8px;padding:10px 11px;margin-top:8px;display:flex;justify-content:space-between;font-size:11px}.sample b{font-weight:500}.sample small{color:#526f8d}.frost .glass{backdrop-filter:blur(var(--blur,18px)) saturate(125%);background:#ffffff30}.liquid .glass{backdrop-filter:url(#lens) blur(1px) saturate(125%);background:#ffffff18;box-shadow:inset 2px 2px 1px #ffffffc7,inset -2px -2px 1px #ffffff65,0 14px 35px #29445f19}.liquid .glass:after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(130deg,#ffffff5c,transparent 22% 75%,#ffffff24);border:1px solid #ffffff60}.notes{padding:16px 18px 19px;color:#7d8ca1;font-size:11px;line-height:1.8;height:112px}.notes b{color:#4c6689;font-weight:500}.legend{margin:22px 38px 0;display:flex;gap:22px;font-size:11px;color:#8b98aa}.legend b{font-weight:500;color:#677f9e}.native{margin:22px 38px 30px;background:#fff;border:1px solid #dfe6f0;border-radius:13px;padding:20px 22px;display:flex;align-items:center;gap:18px}.native h2{font-size:14px;margin:0 0 8px;font-weight:500}.native p{font-size:11px;color:#8c9aaf;margin:0;line-height:1.8}.native a{margin-left:auto;text-decoration:none;font-size:12px;color:#607eaa;white-space:nowrap;border:1px solid #dfe7f2;padding:10px 14px;border-radius:8px}.foot{margin:0 38px 28px;color:#9aa6b6;font-size:10px;line-height:1.8}.off .glass{backdrop-filter:none!important}.off .frost .glass{background:#fff6}.off .liquid .glass{background:#fff3}@media(max-width:1050px){header,.controls{margin-left:0;margin-right:0}.cards{padding:0 18px;gap:12px}.glass{left:17px;right:17px;padding:20px 15px}.controls{margin:18px}.controls label{font-size:11px}.native{margin:20px 18px}.scene{height:400px}.backdrop{padding-left:125px}.controls{flex-wrap:wrap}.notes{height:145px}}
|
||||
</style>
|
||||
<svg width="0" height="0" style="position:absolute" aria-hidden="true"><defs><filter id="lens" filterUnits="objectBoundingBox" x="0" y="0" width="1" height="1" color-interpolation-filters="sRGB"><feImage id="lensMap" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="map"/><feDisplacementMap in="SourceGraphic" in2="map" scale="58" xChannelSelector="R" yChannelSelector="G"/></filter></defs></svg>
|
||||
<header><div><h1>毛玻璃,要让背后的内容真正发生变化。</h1><p>同一份活动背板,比较透明、背景模糊与边缘折射。前景文字始终保持清楚。</p></div><span class="tag">材质验证台 · 浏览器模拟</span></header>
|
||||
<section class="controls"><label>背后内容位置 <input id="shift" type="range" min="-75" max="75" value="0" oninput="moveBackdrop(this.value)"></label><label>磨砂强度 <input id="blur" type="range" min="0" max="32" value="18" oninput="setBlur(this.value)"><span id="blurValue">18px</span></label><button id="effectSwitch" aria-pressed="true" onclick="toggleEffects()">关闭模糊 / 折射</button></section>
|
||||
<section class="cards"><article class="card clear"><div class="cardhead"><h2>01 · 只有透明</h2><p>Alpha 混合;没有模糊,也没有折射。</p></div><div class="scene"><div class="backdrop"></div><div class="glass"><h3>工程任务</h3><p>只透明会让背景线条穿过控件。</p><div class="sample"><div><b>Audio_D2128</b><small>待执行</small></div><div><b>RV05</b><small>1 个替换位号</small></div></div></div></div><div class="notes"><b>观察:</b>背景文字、竖线保持锐利。<br>这是不能替代毛玻璃的透明面板。</div></article>
|
||||
<article class="card frost"><div class="cardhead"><h2>02 · 背景磨砂</h2><p>Backdrop blur + 饱和度 + 轻染色。</p></div><div class="scene"><div class="backdrop"></div><div class="glass"><h3>工程任务</h3><p>颜色透入,细节经过真实模糊。</p><div class="sample"><div><b>Audio_D2128</b><small>待执行</small></div><div><b>RV05</b><small>1 个替换位号</small></div></div></div></div><div class="notes"><b>参考:</b>WinUI Gallery、PythonBlurBehind、PyQt-Frameless-Window。<br>本列是浏览器内背景模糊;原生系统实测见下方。</div></article>
|
||||
<article class="card liquid"><div class="cardhead"><h2>03 · 低磨砂 + 边缘折射</h2><p>SVG 位移贴图采样背后内容,弯曲边缘。</p></div><div class="scene"><div class="backdrop"></div><div class="glass"><h3>工程任务</h3><p>观察边界处的竖线与文字弯曲。</p><div class="sample"><div><b>Audio_D2128</b><small>待执行</small></div><div><b>RV05</b><small>1 个替换位号</small></div></div></div></div><div class="notes"><b>参考:</b>rdev/liquid-glass-react、shuding/liquid-glass。<br>本列原创位移贴图;适合浮层,不建议铺满工程表格。</div></article></section>
|
||||
<div class="legend"><span><b>可验证:</b>拖动背板,看透射与折射随内容移动。</span><span><b>可对比:</b>关闭效果,背景细节立即恢复。</span><span><b>边界:</b>网页效果不等于 Windows 原生背景模糊。</span></div>
|
||||
<section class="native"><div><h2>已验证 Windows 原生 Acrylic / PySide6</h2><p>直接调用 SetWindowCompositionAttribute。左侧为普通透明,右侧为原生模糊,背板来自独立的实时窗口。<br>DWM 背景类型的调用成功不代表实际有模糊,需查看实测报告。</p></div><a href="native-acrylic-a.png">查看原生对照实拍</a><a href="github-material-research.md">8 个 GitHub 项目的实现对比</a></section>
|
||||
<p class="foot">所有背景图形由页面生成,无图片截图纹理;没有远程媒体或 CDN。SVG 滤镜依赖浏览器支持,浏览器不支持时应回退到普通磨砂。本页不操作 CAD 或任务数据。</p>
|
||||
<script>
|
||||
document.querySelectorAll('.backdrop').forEach(el=>el.innerHTML='<strong>BACKDROP<br>LIVE</strong>'+Array.from({length:7},()=>'<span>RV05 4100-CA0000-T7 100nF</span>').join(''));
|
||||
const mapCanvas=document.createElement('canvas');mapCanvas.width=384;mapCanvas.height=384;const ctx=mapCanvas.getContext('2d'),pixels=ctx.createImageData(384,384);
|
||||
for(let y=0;y<384;y++)for(let x=0;x<384;x++){let nx=x/383,ny=y/383;let edge=Math.min(nx,1-nx,ny,1-ny);let falloff=Math.max(0,1-edge/.17);falloff=falloff*falloff;let dx=nx<.5?-1:1,dy=ny<.5?-1:1;let horizontal=Math.abs(nx-.5)*2,vertical=Math.abs(ny-.5)*2;let i=(y*384+x)*4;pixels.data[i]=128+dx*falloff*horizontal*105;pixels.data[i+1]=128+dy*falloff*vertical*105;pixels.data[i+2]=128;pixels.data[i+3]=255}
|
||||
ctx.putImageData(pixels,0,0);document.getElementById('lensMap').setAttribute('href',mapCanvas.toDataURL());
|
||||
function moveBackdrop(value){document.documentElement.style.setProperty('--shift',value+'px')}
|
||||
function setBlur(value){document.documentElement.style.setProperty('--blur',value+'px');document.getElementById('blurValue').textContent=value+'px'}
|
||||
function toggleEffects(){const off=document.body.classList.toggle('off');document.getElementById('effectSwitch').setAttribute('aria-pressed',String(!off));document.getElementById('effectSwitch').textContent=off?'启用模糊 / 折射':'关闭模糊 / 折射'}
|
||||
</script></html>
|
||||
|
Before Width: | Height: | Size: 466 KiB |
@@ -1,37 +0,0 @@
|
||||
{
|
||||
"browser": "156.0.8078.73",
|
||||
"backdrop_support": true,
|
||||
"svg_displacement_support": true,
|
||||
"frost_filter": "blur(18px) saturate(1.25)",
|
||||
"effects_off": "none",
|
||||
"background_transform": "matrix(1, 0, 0, 1, 65, 0)",
|
||||
"compact_no_horizontal_overflow": true,
|
||||
"page_errors": [],
|
||||
"pixel_comparisons": [
|
||||
{
|
||||
"card": 0,
|
||||
"effects_on_vs_off_mean_difference": 0.8051708148482342,
|
||||
"backdrop_moved_difference": 11.28541744993358
|
||||
},
|
||||
{
|
||||
"card": 1,
|
||||
"effects_on_vs_off_mean_difference": 14.270726560144709,
|
||||
"backdrop_moved_difference": 4.7047532911265195
|
||||
},
|
||||
{
|
||||
"card": 2,
|
||||
"effects_on_vs_off_mean_difference": 10.785156778705165,
|
||||
"backdrop_moved_difference": 8.87468481339449
|
||||
}
|
||||
],
|
||||
"native": {
|
||||
"sharp_horizontal_edge_energy": 4.490932590169232,
|
||||
"acrylic_horizontal_edge_energy": 0.7067472915091962,
|
||||
"edge_suppression_ratio": 6.354368306922327,
|
||||
"live_backdrop_color_difference": 7.227865290602934,
|
||||
"os_build": 26200,
|
||||
"swca_returned_success": true,
|
||||
"dwm_hresult": 0,
|
||||
"dwm_observation": "Solid output in this isolated Qt setup after clearing SWCA; HRESULT 0 alone is not evidence of backdrop blur."
|
||||
}
|
||||
}
|
||||