01 · 只有透明
Alpha 混合;没有模糊,也没有折射。
工程任务
只透明会让背景线条穿过控件。
这是不能替代毛玻璃的透明面板。
同一份活动背板,比较透明、背景模糊与边缘折射。前景文字始终保持清楚。
Alpha 混合;没有模糊,也没有折射。
只透明会让背景线条穿过控件。
Backdrop blur + 饱和度 + 轻染色。
颜色透入,细节经过真实模糊。
SVG 位移贴图采样背后内容,弯曲边缘。
观察边界处的竖线与文字弯曲。
直接调用 SetWindowCompositionAttribute。左侧为普通透明,右侧为原生模糊,背板来自独立的实时窗口。
DWM 背景类型的调用成功不代表实际有模糊,需查看实测报告。
所有背景图形由页面生成,无图片截图纹理;没有远程媒体或 CDN。SVG 滤镜依赖浏览器支持,浏览器不支持时应回退到普通磨砂。本页不操作 CAD 或任务数据。
+ diff --git a/docs/reviews/2026-10-30-ui/material-lab.png b/docs/reviews/2026-10-30-ui/material-lab.png new file mode 100644 index 0000000..34eb62c Binary files /dev/null and b/docs/reviews/2026-10-30-ui/material-lab.png differ diff --git a/docs/reviews/2026-10-30-ui/material-verification.json b/docs/reviews/2026-10-30-ui/material-verification.json new file mode 100644 index 0000000..2f47c25 --- /dev/null +++ b/docs/reviews/2026-10-30-ui/material-verification.json @@ -0,0 +1,37 @@ +{ + "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." + } +} diff --git a/docs/reviews/2026-10-30-ui/native-acrylic-a.png b/docs/reviews/2026-10-30-ui/native-acrylic-a.png new file mode 100644 index 0000000..d3927e5 Binary files /dev/null and b/docs/reviews/2026-10-30-ui/native-acrylic-a.png differ diff --git a/docs/reviews/2026-10-30-ui/native-acrylic-b.png b/docs/reviews/2026-10-30-ui/native-acrylic-b.png new file mode 100644 index 0000000..30a81e0 Binary files /dev/null and b/docs/reviews/2026-10-30-ui/native-acrylic-b.png differ diff --git a/docs/reviews/2026-10-30-ui/native-acrylic-live.gif b/docs/reviews/2026-10-30-ui/native-acrylic-live.gif new file mode 100644 index 0000000..43e059d Binary files /dev/null and b/docs/reviews/2026-10-30-ui/native-acrylic-live.gif differ diff --git a/docs/reviews/2026-10-30-ui/native-acrylic-probe.py b/docs/reviews/2026-10-30-ui/native-acrylic-probe.py new file mode 100644 index 0000000..aa8a647 --- /dev/null +++ b/docs/reviews/2026-10-30-ui/native-acrylic-probe.py @@ -0,0 +1,124 @@ +"""Disposable native Windows material probe, not a CAD or production UI change. + +Run with Python + PySide6 + Pillow on Windows. Opens only owned test windows, +captures their shared rectangle, then closes them. No user content is sampled. +""" +import ctypes +from ctypes import wintypes +import json +import os +from pathlib import Path +import sys + +os.environ.pop('QT_QPA_PLATFORM',None) +from PySide6.QtCore import Qt,QTimer,QRectF +from PySide6.QtGui import QColor,QFont,QPainter,QLinearGradient,QPen +from PySide6.QtWidgets import QApplication,QWidget,QVBoxLayout,QLabel +from PIL import ImageGrab + +root=Path(__file__).resolve().parent +user=ctypes.WinDLL('user32',use_last_error=True) +dwm=ctypes.WinDLL('dwmapi',use_last_error=True) +user.SetWindowCompositionAttribute.argtypes=[wintypes.HWND,ctypes.c_void_p] +user.SetWindowCompositionAttribute.restype=wintypes.BOOL +class Point(ctypes.Structure): + _fields_=[('x',ctypes.c_long),('y',ctypes.c_long)] +user.WindowFromPoint.argtypes=[Point] +user.WindowFromPoint.restype=wintypes.HWND +user.GetWindowThreadProcessId.argtypes=[wintypes.HWND,ctypes.POINTER(wintypes.DWORD)] +dwm.DwmSetWindowAttribute.argtypes=[wintypes.HWND,wintypes.DWORD,ctypes.c_void_p,wintypes.DWORD] +dwm.DwmSetWindowAttribute.restype=ctypes.c_long +class Accent(ctypes.Structure): + _fields_=[('state',ctypes.c_int),('flags',ctypes.c_int),('color',ctypes.c_uint32),('animation',ctypes.c_int)] +class Composition(ctypes.Structure): + _fields_=[('attribute',ctypes.c_int),('data',ctypes.c_void_p),('size',ctypes.c_size_t)] +def accent(hwnd,state): + policy=Accent(state,0,0x20F4F4F4,0) + data=Composition(19,ctypes.cast(ctypes.pointer(policy),ctypes.c_void_p),ctypes.sizeof(policy)) + return bool(user.SetWindowCompositionAttribute(hwnd,ctypes.byref(data))) +def backdrop(hwnd,kind): + value=ctypes.c_int(kind) + return int(dwm.DwmSetWindowAttribute(hwnd,38,ctypes.byref(value),ctypes.sizeof(value))) + +app=QApplication([]) +app.setFont(QFont('Segoe UI',11)) +screen=app.primaryScreen().availableGeometry() +width=min(1200,screen.width()-60);height=min(760,screen.height()-60) +origin=(screen.x()+(screen.width()-width)//2,screen.y()+(screen.height()-height)//2) +class Background(QWidget): + phase=0 + def paintEvent(self,event): + p=QPainter(self);p.setRenderHint(QPainter.RenderHint.Antialiasing) + p.fillRect(self.rect(),QColor('#e8edf2')) + for col in range(2): + area=QRectF(30+col*(width/2),110,width/2-60,height-155) + g=QLinearGradient(area.topLeft(),area.bottomRight()) + g.setColorAt(0,QColor('#4c79b6') if self.phase==0 else QColor('#cf8663')) + g.setColorAt(.47,QColor('#aecac9'));g.setColorAt(1,QColor('#d6a39e') if self.phase==0 else QColor('#6a88b1')) + p.fillRect(area,g) + p.setPen(QPen(QColor('#ffffffb0'),2)) + for x in range(int(area.left()),int(area.right()),24):p.drawLine(x,int(area.top()),x,int(area.bottom())) + p.setPen(QColor('#253d57'));p.setFont(QFont('Segoe UI',35,QFont.Weight.Bold)) + p.drawText(area.adjusted(22,90,-10,0),'BACKDROP\nLIVE '+str(self.phase+1)) + p.setPen(QColor('#fff'));p.setFont(QFont('Consolas',13)) + for row in range(6):p.drawText(int(area.left()+22),int(area.top()+260+row*30),'RV05 4100-CA0000-T7 100nF') + p.setPen(QColor('#34475f'));p.setFont(QFont('Segoe UI',18,QFont.Weight.DemiBold)) + p.drawText(30,38,'Native Windows / PySide6 material probe') + p.setFont(QFont('Segoe UI',10));p.setPen(QColor('#6c7f96')) + p.drawText(30,66,'Identical owned background on both sides. No screenshot texture is painted into either foreground window.') + p.drawText(30,height-17,'Captured from actual Windows composition; no CAD, no user project, no foreign window in the capture rectangle.') + +class Pane(QWidget): + def __init__(self,title,subtitle): + super().__init__(None,Qt.WindowType.FramelessWindowHint|Qt.WindowType.Tool|Qt.WindowType.WindowStaysOnTopHint) + self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground) + layout=QVBoxLayout(self);layout.setContentsMargins(24,25,24,24) + titleLabel=QLabel(title);titleLabel.setStyleSheet('background:transparent;color:#213952;font-size:18px;font-weight:600') + hint=QLabel(subtitle);hint.setStyleSheet('background:transparent;color:#46617f;font-size:11px');hint.setWordWrap(True) + layout.addWidget(titleLabel);layout.addWidget(hint);layout.addStretch() + for text in ['Audio_D2128','Selected: RV05','Plan saved / No CAD write']: + label=QLabel(text);label.setStyleSheet('background:rgba(255,255,255,110);color:#314d6c;border:1px solid rgba(255,255,255,170);border-radius:7px;padding:10px;font-size:12px');layout.addWidget(label) + def paintEvent(self,event): + p=QPainter(self);p.fillRect(self.rect(),QColor(255,255,255,45));p.setPen(QPen(QColor(255,255,255,170),1));p.drawRect(self.rect().adjusted(0,0,-1,-1)) + +bg=Background(None,Qt.WindowType.FramelessWindowHint|Qt.WindowType.Tool|Qt.WindowType.WindowStaysOnTopHint) +bg.setGeometry(origin[0],origin[1],width,height) +left=Pane('Transparency only','OS blur disabled. Background lines and letters remain sharp.') +right=Pane('Windows Acrylic','ACCENT_ENABLE_ACRYLICBLURBEHIND. Background is composed by Windows.') +paneW=int(width/2-112);paneH=height-250 +left.setGeometry(origin[0]+56,origin[1]+143,paneW,paneH) +right.setGeometry(origin[0]+int(width/2)+56,origin[1]+143,paneW,paneH) +report={'os_build':sys.getwindowsversion().build,'capture_method':'PIL ImageGrab of owned background window rectangle, not QWidget.grab','uses_baked_backdrop':False,'ownership_grid_checked':True,'artifacts':[]} +bg.show();left.show();right.show();right.raise_();right.activateWindow() +def capture(name): + dpr=app.primaryScreen().devicePixelRatio() + bbox=tuple(round(v*dpr) for v in [origin[0],origin[1],origin[0]+width,origin[1]+height]) + for y in range(bbox[1]+3,bbox[3]-3,24): + for x in range(bbox[0]+3,bbox[2]-3,24): + hwnd=user.WindowFromPoint(Point(x,y));pid=wintypes.DWORD() + user.GetWindowThreadProcessId(hwnd,ctypes.byref(pid)) + if pid.value!=os.getpid(): + left.close();right.close();bg.close();app.quit() + raise RuntimeError('Owned test rectangle is occluded; no capture saved') + im=ImageGrab.grab(bbox=bbox,all_screens=True) + im.save(root/name);report['artifacts'].append({'file':name,'dimensions':im.size,'phase':bg.phase}) +def first(): + report['accent_api_return']=accent(int(right.winId()),4) + report['left_native_handle']=int(left.winId());report['right_native_handle']=int(right.winId()) + QTimer.singleShot(1800,second) +def second(): + capture('native-acrylic-a.png');bg.phase=1;bg.update();QTimer.singleShot(1400,third) +def third(): + capture('native-acrylic-b.png') + report['clear_accent_before_dwm']=accent(int(right.winId()),0) + report['dwm_transient_hresult']=backdrop(int(right.winId()),3) + QTimer.singleShot(1400,fourth) +def fourth(): + capture('native-dwm-acrylic.png') + (root/'native-acrylic-verification.json').write_text(json.dumps(report,ensure_ascii=False,indent=2)+'\n',encoding='utf-8') + left.close();right.close();bg.close();app.quit() +QTimer.singleShot(800,first) +QTimer.singleShot(15000,app.quit) +app.exec() +assert 'dwm_transient_hresult'in report,'Probe did not complete' +print(json.dumps(report,ensure_ascii=True)) diff --git a/docs/reviews/2026-10-30-ui/native-acrylic-verification.json b/docs/reviews/2026-10-30-ui/native-acrylic-verification.json new file mode 100644 index 0000000..8bd323f --- /dev/null +++ b/docs/reviews/2026-10-30-ui/native-acrylic-verification.json @@ -0,0 +1,37 @@ +{ + "os_build": 26200, + "capture_method": "PIL ImageGrab of owned background window rectangle, not QWidget.grab", + "uses_baked_backdrop": false, + "ownership_grid_checked": true, + "artifacts": [ + { + "file": "native-acrylic-a.png", + "dimensions": [ + 1500, + 944 + ], + "phase": 0 + }, + { + "file": "native-acrylic-b.png", + "dimensions": [ + 1500, + 944 + ], + "phase": 1 + }, + { + "file": "native-dwm-acrylic.png", + "dimensions": [ + 1500, + 944 + ], + "phase": 1 + } + ], + "accent_api_return": true, + "left_native_handle": 21301414, + "right_native_handle": 36241716, + "clear_accent_before_dwm": true, + "dwm_transient_hresult": 0 +} diff --git a/docs/reviews/2026-10-30-ui/native-dwm-acrylic.png b/docs/reviews/2026-10-30-ui/native-dwm-acrylic.png new file mode 100644 index 0000000..b6b5b3a Binary files /dev/null and b/docs/reviews/2026-10-30-ui/native-dwm-acrylic.png differ diff --git a/docs/reviews/2026-10-30-ui/polish-acceptance.json b/docs/reviews/2026-10-30-ui/polish-acceptance.json new file mode 100644 index 0000000..0f3698c --- /dev/null +++ b/docs/reviews/2026-10-30-ui/polish-acceptance.json @@ -0,0 +1,25 @@ +{ + "cad_started": false, + "sample_data_only": true, + "ownership_checked": true, + "os_build": 26200, + "native_enabled": true, + "sidebar_backdrop_difference": 21.82010089789873, + "opaque_table_backdrop_difference": 0.0, + "right_header_backdrop_difference": 9.334799022873641, + "right_execution_backdrop_difference": 12.328983050847457, + "visible_search_feedback": true, + "empty_search_feedback": true, + "solid_sidebar_mean": [ + 233.0, + 238.0, + 244.0 + ], + "solid_fallback": true, + "compact_size": [ + 980, + 700 + ], + "compact_table_height": 197, + "options_exposed": true +} diff --git a/docs/reviews/2026-10-30-ui/polish-compact.png b/docs/reviews/2026-10-30-ui/polish-compact.png new file mode 100644 index 0000000..56afb25 Binary files /dev/null and b/docs/reviews/2026-10-30-ui/polish-compact.png differ diff --git a/docs/reviews/2026-10-30-ui/polish-empty.png b/docs/reviews/2026-10-30-ui/polish-empty.png new file mode 100644 index 0000000..d5c2a5c Binary files /dev/null and b/docs/reviews/2026-10-30-ui/polish-empty.png differ diff --git a/docs/reviews/2026-10-30-ui/polish-native.png b/docs/reviews/2026-10-30-ui/polish-native.png new file mode 100644 index 0000000..8b0424e Binary files /dev/null and b/docs/reviews/2026-10-30-ui/polish-native.png differ diff --git a/docs/reviews/2026-10-30-ui/polish-search.png b/docs/reviews/2026-10-30-ui/polish-search.png new file mode 100644 index 0000000..9770c86 Binary files /dev/null and b/docs/reviews/2026-10-30-ui/polish-search.png differ diff --git a/docs/reviews/2026-10-30-ui/preview-verification.json b/docs/reviews/2026-10-30-ui/preview-verification.json new file mode 100644 index 0000000..cdb0c18 --- /dev/null +++ b/docs/reviews/2026-10-30-ui/preview-verification.json @@ -0,0 +1,136 @@ +[ + { + "test": "1440x900-ready", + "ok": true, + "width": 1440, + "height": 900, + "primary": "核对执行范围", + "primaryIcon": "#icon-play" + }, + { + "test": "1440x900-running", + "ok": true, + "width": 1440, + "height": 900, + "primary": "完成当前项后暂停", + "primaryIcon": "#icon-pause" + }, + { + "test": "1440x900-recovery", + "ok": true, + "width": 1440, + "height": 900, + "primary": "核验并恢复", + "primaryIcon": "#icon-refresh" + }, + { + "test": "1440x900-assistant", + "ok": true, + "width": 1440, + "height": 900, + "primary": "核验并恢复", + "primaryIcon": "#icon-refresh" + }, + { + "test": "svg-references", + "ok": true, + "symbols": 32 + }, + { + "test": "row-inspector", + "ok": true + }, + { + "test": "execution-review-before-write", + "ok": true, + "scope": "current" + }, + { + "test": "review-cancel-keeps-ready", + "ok": true + }, + { + "test": "batch-not-ready-blocked", + "ok": true + }, + { + "test": "dirty-plan-blocks-execution", + "ok": true, + "selected": 2 + }, + { + "test": "dirty-plan-cannot-open-review", + "ok": true + }, + { + "test": "filtered-review-retains-hidden-selection", + "ok": true, + "visibleRows": 1, + "reviewCount": 2 + }, + { + "test": "confirm-starts-preparation", + "ok": true, + "phase": "准备环境" + }, + { + "test": "pause-does-not-interrupt-write", + "ok": true + }, + { + "test": "pause-waits-for-save", + "ok": true, + "phase": "保存工程" + }, + { + "test": "save-is-not-verified-success", + "ok": true, + "phase": "重新打开并回读核验" + }, + { + "test": "pause-after-verification", + "ok": true, + "refs": [ + "RV05", + "RV11" + ] + }, + { + "test": "changed-plan-invalidates-confirmation", + "ok": true + }, + { + "test": "assistant-retains-recovery-lock", + "ok": true + }, + { + "test": "recovery-requires-explicit-review", + "ok": true + }, + { + "test": "recovery-goes-to-verification", + "ok": true + }, + { + "test": "completion-follows-verification", + "ok": true + }, + { + "test": "reduce-transparency", + "ok": true + }, + { + "test": "980x700-layout", + "ok": true, + "width": 980, + "height": 700 + }, + { + "test": "980x700-review-layout", + "ok": true + }, + { + "test": "zero-items-blocked", + "ok": true + } +] diff --git a/docs/reviews/2026-10-30-ui/preview.html b/docs/reviews/2026-10-30-ui/preview.html new file mode 100644 index 0000000..5e3afab --- /dev/null +++ b/docs/reviews/2026-10-30-ui/preview.html @@ -0,0 +1,121 @@ + + +| 替换 | 位号 | 图页 | 旧料号 | 新料号 | 原 Value | 自定义 Value | 同步 NC |
|---|
| 启用 | 旧料号 | 新料号 | 自定义 Value | 同步 NC | 目标封装 |
|---|---|---|---|---|---|
| 4100-CA0000-T7 | 4100-CA0000-T0 | 不写入 | 是 | 未指定 |
执行后核对位号、实际回读料号和保存核验状态。
完整日志与轮次证据保留独立入口。
读取来源:当前工程已保存的位号计划
助手回复不作为保存核验结果,工程写入仍需确认执行范围。