主窗口 transparent:true 使 WebView2 内容整页走 per-pixel alpha 分层合成, 但 UI 所有大面积层(winchrome/shell/sidebar/内容区)都是不透明背景, Mica 磨砂实际被完全盖住,透明是纯 GPU 成本零视觉收益。 录音期间叠加胶囊 60fps WebGL + 30Hz 事件,DWM 被拖到饱和时: - 其他软件合成帧送不出去 → 全局无响应 - 任务栏右键触发缩略图/重合成 → GPU 飙升 新增 tauri.windows.conf.json 平台覆盖(json_patch 数组整体替换, 必须完整列出窗口),main 窗口 transparent:false,capsule 保留透明。 macOS/Linux 不受影响。参考 tauri.linux.conf.json 既有先例。
45 lines
1.0 KiB
JSON
45 lines
1.0 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"label": "main",
|
|
"title": "OpenLess",
|
|
"width": 1240,
|
|
"height": 800,
|
|
"minWidth": 980,
|
|
"minHeight": 640,
|
|
"resizable": true,
|
|
"decorations": true,
|
|
"transparent": false,
|
|
"shadow": true,
|
|
"hiddenTitle": true,
|
|
"titleBarStyle": "Overlay",
|
|
"trafficLightPosition": {
|
|
"x": 14,
|
|
"y": 20
|
|
},
|
|
"visible": false,
|
|
"acceptFirstMouse": true
|
|
},
|
|
{
|
|
"label": "capsule",
|
|
"url": "index.html?window=capsule",
|
|
"title": "OpenLess Capsule",
|
|
"width": 460,
|
|
"height": 180,
|
|
"decorations": false,
|
|
"transparent": true,
|
|
"shadow": false,
|
|
"alwaysOnTop": true,
|
|
"skipTaskbar": true,
|
|
"resizable": false,
|
|
"focus": false,
|
|
"visible": false,
|
|
"center": false,
|
|
"acceptFirstMouse": true
|
|
}
|
|
]
|
|
}
|
|
}
|