Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
feat(ui-mig): G1.4 Lucide icons through VIcon replace the emoji
Veyra Goal Agent40c70263cbd6
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.mdindex ae6495ea..b2d790a7 100644--- a/THIRD_PARTY_NOTICES.md+++ b/THIRD_PARTY_NOTICES.md@@ -92,6 +92,8 @@ Source: https://github.com/lucide-icons/lucide/tree/a537cb6eb323b885f4c60baf3cec`assets/icons/lucide/manifest.json` records the pinned revision and per-file SHA256. `scripts/generate-lucide-icons.py` converts the SVG geometry to GDI+ paths in `apps/veyra/ui/LucideIcons.h`, using development-only fonttools 4.64.0. Veyra requires no fonttools, network request, icon font or external icon runtime.+The Qt/QML interface (2026-09-26) draws the Lucide geometry that the approved prototype carries in `prototypes/ui-redesign-2026-09-25/icons.js`. `tools/qt_probe/make-icons.py` converts those SVG elements to path data in `qml/Veyra/IconData.js`, rendered by `qml/Veyra/VIcon.qml`; the same Lucide ISC / Feather MIT notices in `assets/icons/lucide/LICENSE` apply. `back10`, `fwd10`, `playfill` and `pausefill` in that file are the prototype's own inline SVGs, not Lucide.+## RTX Video SDK 1.1 local VSR adapterUser-provided official SDK from https://developer.nvidia.com/rtx-video-sdk/getting-started, kept under ignored third_party_local/nvidia/RTX_Video_SDK_1.1.0. Its NVIDIA RTX SDK license remains applicable. VideoSrBackend is independently authored against the documented VSR parameter ABI; no SDK sample implementation or proprietary header is copied into the repository. Local nvngx_vsr.dll remains excluded from Git. Under the user-authorized 2026-09-09 Release Runtime Pack policy, its pinned signed release copy may be included only as a Release asset alongside the applicable SDK license and manifest; it is never committed to source control.diff --git a/docs/UI_FULL_GOAL_PLAN_2026-09-26.md b/docs/UI_FULL_GOAL_PLAN_2026-09-26.mdindex b1188fcd..fa58a84a 100644--- a/docs/UI_FULL_GOAL_PLAN_2026-09-26.md+++ b/docs/UI_FULL_GOAL_PLAN_2026-09-26.md@@ -10,7 +10,7 @@| 阶段 | 状态 | 最后标签 | 备注 ||---|---|---|---|| G0 工具与基线 | 完成 | checkpoint/ui-mig-g0.7 | 设计参考 `design-ref/`、对比 `compare/`、动效曲线 `goal/g0.5/`、缓动测试 `veyra_qml_easing_tests`(构建目录 `build/qt-probe-20260926`)、门槛基线 `goal/g0.7/`(B 阶段性能对比用 `goal/g0.7/perf`) |-| G1 基础(缓动/背景/字体/图标/组件动效) | 进行中 | checkpoint/ui-mig-g1.3 | G1.1 缓动、G1.2 背景、G1.3 字体完成(Qt 6.8.3:BezierSpline ≤10 段;CurveRenderer 不能用 fillItem;可变字体 600 须设 wght 轴);下一步 G1.4 图标 |+| G1 基础(缓动/背景/字体/图标/组件动效) | 进行中 | checkpoint/ui-mig-g1.4 | G1.1 缓动、G1.2 背景、G1.3 字体、G1.4 图标完成(Qt 6.8.3:BezierSpline ≤10 段;CurveRenderer 不能用 fillItem;可变字体 600 须设 wght 轴);下一步 G1.5 组件动效 || G2 外壳 | 未开始 | | || G3 四主屏 | 未开始 | | || B1 小项 + 桥接补齐 | 未开始 | | |diff --git a/docs/UI_MIGRATION_EXECUTION_2026-09-25.md b/docs/UI_MIGRATION_EXECUTION_2026-09-25.mdindex 726707ff..1ba14f56 100644--- a/docs/UI_MIGRATION_EXECUTION_2026-09-25.md+++ b/docs/UI_MIGRATION_EXECUTION_2026-09-25.md@@ -46,6 +46,7 @@| G1.1 | 缓动曲线改 6 值段 | 完成 | `checkpoint/ui-mig-g1.1` | 证据 `goal/g1.1/`。Theme `linearEasing()` 把 CSS linear() 停靠点逐段转三次段;veyra_qml_easing_tests 三曲线全过(spring 10 段误差 0.0068、springSoft/easeOut 0.0000)。Qt 6.8.3 缺陷:BezierSpline ≥11 段销毁时堆损坏(C++ 无 QML 复现,n≤10 正常),spring 删 28.4%/38.5% 两个停靠点降到 10 段,测试加段数上限检查(12 段版被判 FAIL,记录 12seg-caught.txt)。动效采样 dock 峰值 10.59 vs 设计 10.17、开关 14.6 vs 14.6;页面切换仍无过渡,属 G2.2 || G1.2 | 窗口背景径向渐变 + 颗粒 | 完成 | `checkpoint/ui-mig-g1.2` | 证据 `goal/g1.2/`。先试 QML RadialGradient(形状对,但 7..28 级梯度量化成可见圆环,a/b/c 与拉伸图);改为 `tools/qt_probe/make-backdrop.py` 浮点计算 app.css .vy 渐变并一次抖动生成 `backdrop.png`,`VBackdrop.qml` 以 Shape fillItem 圆角裁切。Qt 6.8.3 CurveRenderer + fillItem 访问冲突(qml.exe 最小复现),改 GeometryRenderer + 4x 多重采样。六个采样块均值与设计差 ≤0.1 级、颗粒 std 0.18–0.55(设计 0.29–0.66);拉伸对比图无圆环。f-min 与改前逐像素一致,f-pro/f-node 仅背景像素变化 || G1.3 | 字体(D4) | 完成 | `checkpoint/ui-mig-g1.3` | 证据 `goal/g1.3/`。本机无 Geist,按 D4 用设计稿 --f-ui 第二候选 Noto Sans SC(Edge 渲染参考图同此字体),等宽保持 Consolas(偏差记录)。Qt 6.8.3 对 Noto Sans SC 可变字体 font.weight 600 取到细体实例(500/700 正常,qml.exe 最小复现 `min/Font.qml`),故 DemiBold 处同时设 `font.variableAxes: Theme.axesDemiBold`(wght 600)。title-zoom(改前细体)与 title-zoom-b(修后,与设计同粗)已看 |+| G1.4 | 图标 | 完成 | `checkpoint/ui-mig-g1.4` | 证据 `goal/g1.4/`。`tools/qt_probe/make-icons.py` 由 icons.js 生成 `IconData.js`(65 个 Lucide + 原型内联 back10/fwd10/playfill/pausefill),`VIcon`(Shape+PathSvg,24 viewBox 缩放,描边 1.7 圆头圆角);10 个 QML 文件的 emoji 全部换为 VIcon/`iconName`。65 图标网格与 Edge 渲染对比一致(`min/icons-cmp.png`),修正拼接多元素时首个相对 m 须以 M0 0 锚定。偏差:设计无锁图标,锁定节点用 `key`。f-aud/f-cap 等对话框布局差距与 qml-ref 基线相同(既有,G3 处理),非回退 |## 发现并修复的 bugdiff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex 0f2c4d5e..b9650305 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -6595,3 +6595,10 @@ release. 5090 live acceptance, 15-second hitch and user flicker remain unresolve于是 16 处 Font.DemiBold 加 `font.variableAxes: Theme.axesDemiBold`,VButton 主按钮同。验证:`scripts/build-qt-probe.ps1`、sync、`shoot-all.ps1 -Frames f-home,f-pro` + `compose-compare.ps1`(goal/g1.3/b),title-zoom-b.png 标题与设计同粗、Medium 文本正常;本次运行日志无 QML ERROR。++- G1.4 图标(证据 `E:/项目/Veyra/logs/ui-qml-migration-20260925/goal/g1.4/`):+ `python tools/qt_probe/make-icons.py` → `qml/Veyra/IconData.js`(69 条:icons.js 65 个 Lucide + pages-a.js 内联 back10/fwd10/playfill/pausefill),新 `VIcon.qml`、qmldir 注册,VButton 增 `iconName`。+ DialogHost/HomePage/VAccordion/ProPage/NodePage/MinimalPage/TopDock/VSelect/VSubGroup/ChainNodeCard 的 emoji 全部替换(`tmp/.../g14-replace.py`)。+ 最小复现 `tmp/.../min/Icons.qml`(qml.exe)对比 headless Edge 渲染 icons.html:初次 layers/x/search/box/image 错位——多元素拼成一条 path 时首个相对 m 接在上一元素终点,改为前置 M0 0 后 65 个全部一致(icons-cmp.png)。+ 验证:sync、`shoot-all.ps1 -Frames f-home,f-min,f-pro,f-node,f-cap,f-aud,f-sub,f-color` + `compose-compare.ps1`,看图:dock/来源卡/手风琴/相机/播放/快进快退图标正确;f-min 黑屏、f-aud 对话框被视频窗遮挡与 qml-ref 基线相同,属既有差距(G3)。+ 偏差:设计无锁图标,锁定节点用 key。NOTICES Lucide 条目补充本次来源。diff --git a/qml/Veyra/ChainNodeCard.qml b/qml/Veyra/ChainNodeCard.qmlindex c64f6def..e1c75318 100644--- a/qml/Veyra/ChainNodeCard.qml+++ b/qml/Veyra/ChainNodeCard.qml@@ -67,20 +67,20 @@ Rectangle {}}- Text {+ VIcon {visible: card.locked- text: "🔒"- font.pixelSize: 13- opacity: 0.7+ name: "key"+ size: 13+ color: Theme.t3}// Removing frame generation is refused by the engine too; greying it// here just avoids offering an action that cannot succeed.- Text {- text: "✕"+ VIcon {+ name: "x"visible: !card.lockedcolor: removeHover.hovered ? Theme.err : Theme.t3- font.pixelSize: 14+ size: 14HoverHandler { id: removeHover; cursorShape: Qt.PointingHandCursor }TapHandler { onTapped: card.removeRequested() }}diff --git a/qml/Veyra/DialogHost.qml b/qml/Veyra/DialogHost.qmlindex f3b77046..8bc70265 100644--- a/qml/Veyra/DialogHost.qml+++ b/qml/Veyra/DialogHost.qml@@ -71,7 +71,7 @@ Item {Rectangle {implicitWidth: 34; implicitHeight: 34; radius: 10color: Qt.rgba(1, 1, 1, 0.06)- Text { anchors.centerIn: parent; text: dlg.glyph; font.pixelSize: 16 }+ VIcon { anchors.centerIn: parent; name: dlg.glyph }}ColumnLayout {Layout.fillWidth: true@@ -93,7 +93,7 @@ Item {wrapMode: Text.WordWrap}}- VButton { icon: true; glyph: "✕"; ghost: true; onClicked: host.close() }+ VButton { icon: true; iconName: "x"; ghost: true; onClicked: host.close() }}Flickable {@@ -134,7 +134,7 @@ Item {// --- 采集卡 -----------------------------------------------------------DLayer {visible: host.dialog === "capture"- glyph: "🎬"+ glyph: "video"title: "采集卡"sub: "连接设备后,先关闭增强确认基础画面,再按需开启"dialogWidth: 620@@ -189,7 +189,7 @@ Item {// --- PS5 串流 ---------------------------------------------------------DLayer {visible: host.dialog === "ps5"- glyph: "🎮"+ glyph: "gamepad"title: "PS5 串流"sub: "局域网 Remote Play · 凭据加密保存在本机"dialogWidth: 640@@ -239,7 +239,7 @@ Item {// --- 屏幕捕获 ---------------------------------------------------------DLayer {visible: host.dialog === "screen"- glyph: "🖥"+ glyph: "monitor"title: "屏幕捕获"sub: "把一个窗口或整块显示器作为片源"dialogWidth: 700@@ -281,7 +281,7 @@ Item {// --- 字幕设置 ---------------------------------------------------------DLayer {visible: host.dialog === "subtitle"- glyph: "🅰"+ glyph: "type"title: "字幕设置"sub: "实时预览,设置对所有文件生效"dialogWidth: 620@@ -298,7 +298,7 @@ Item {// --- 音频设置 ---------------------------------------------------------DLayer {visible: host.dialog === "audio"- glyph: "♪"+ glyph: "music"title: "音频设置"dialogWidth: 560actions: [{ label: "完成", primary: true }]@@ -346,11 +346,10 @@ Item {font.pixelSize: 11}}- Text {+ VIcon {visible: veyra.selectedAudioTrack === modelData.index- text: "✓"+ name: "check"color: Theme.accent- font.pixelSize: 14}}HoverHandler { cursorShape: Qt.PointingHandCursor }@@ -402,7 +401,7 @@ Item {DLayer {id: saveDialogvisible: host.dialog === "save"- glyph: "☰"+ glyph: "plus"title: "另存为预设"sub: "预设会保存下面勾选的部分;应用时只覆盖勾选的部分"dialogWidth: 620@@ -465,7 +464,7 @@ Item {// --- 管理预设 ---------------------------------------------------------DLayer {visible: host.dialog === "manage"- glyph: "☰"+ glyph: "settings"title: "管理预设"sub: "内置预设可以复制,不能改名或删除"dialogWidth: 620diff --git a/qml/Veyra/HomePage.qml b/qml/Veyra/HomePage.qmlindex 9ff2b920..2fafd5bf 100644--- a/qml/Veyra/HomePage.qml+++ b/qml/Veyra/HomePage.qml@@ -57,10 +57,10 @@ Item {spacing: 12Repeater {model: [- { glyph: "📁", title: "打开视频", sub: "MP4 · MKV · 图片", act: "file" },- { glyph: "🎬", title: "采集卡", sub: "HDMI 采集设备", act: "capture" },- { glyph: "🎮", title: "PS5 串流", sub: "局域网串流", act: "ps5" },- { glyph: "🖥", title: "屏幕捕获", sub: "窗口或显示器", act: "screen" }+ { glyph: "folder", title: "打开视频", sub: "MP4 · MKV · 图片", act: "file" },+ { glyph: "video", title: "采集卡", sub: "HDMI 采集设备", act: "capture" },+ { glyph: "gamepad", title: "PS5 串流", sub: "局域网串流", act: "ps5" },+ { glyph: "monitor", title: "屏幕捕获", sub: "窗口或显示器", act: "screen" }]delegate: Rectangle {required property var modelData@@ -87,10 +87,9 @@ Item {implicitHeight: 34radius: 10color: Qt.rgba(1, 1, 1, 0.06)- Text {+ VIcon {anchors.centerIn: parent- text: modelData.glyph- font.pixelSize: 16+ name: modelData.glyph}}Item { Layout.fillHeight: true }@@ -151,7 +150,7 @@ Item {Rectangle {implicitWidth: 34; implicitHeight: 34; radius: 10color: Theme.accentSoft- Text { anchors.centerIn: parent; text: "🎮"; font.pixelSize: 15; color: Theme.accent }+ VIcon { anchors.centerIn: parent; name: "gamepad"; color: Theme.accent }}ColumnLayout {Layout.fillWidth: truediff --git a/qml/Veyra/IconData.js b/qml/Veyra/IconData.jsnew file mode 100644index 00000000..fcdfe55c--- /dev/null+++ b/qml/Veyra/IconData.js@@ -0,0 +1,76 @@+// Generated by tools/qt_probe/make-icons.py from prototypes/ui-redesign-2026-09-25/icons.js.+// Lucide icons (ISC license, lucide.dev); see THIRD_PARTY_NOTICES.md. Do not edit by hand.+// back10/fwd10/playfill/pausefill are the prototype's own inline SVGs (pages-a.js).+.pragma library++var paths = {+ "play": "M6 3L20 12L6 21L6 3z",+ "pause": "M15 4h2a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1zM7 4h2a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1z",+ "tv": "M4 7h16a2 2 0 0 1 2 2v11a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2zM17 2L12 7L7 2",+ "sliders": "M21 4L14 4M10 4L3 4M21 12L12 12M8 12L3 12M21 20L16 20M12 20L3 20M14 2L14 6M8 10L8 14M16 18L16 22",+ "upload": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8L12 3L7 8M12 3L12 15",+ "settings": "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2zM9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z",+ "folder": "M0 0m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",+ "gamepad": "M6 11L10 11M8 9L8 13M15 12L15.01 12M18 10L18.01 10M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",+ "video": "M0 0m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5M4 6h10a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z",+ "cast": "M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6M2 12a9 9 0 0 1 8 8M2 16a5 5 0 0 1 4 4M2 20h.01",+ "scan": "M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2M8 7h8a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-8a1 1 0 0 1 -1 -1v-8a1 1 0 0 1 1 -1z",+ "plus": "M5 12h14M12 5v14",+ "right": "M0 0m9 18 6-6-6-6",+ "down": "M0 0m6 9 6 6 6-6",+ "left": "M0 0m15 18-6-6 6-6",+ "grip": "M8 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0zM8 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0zM8 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0zM14 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0zM14 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0zM14 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z",+ "x": "M18 6 6 18M0 0m6 6 12 12",+ "max": "M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3",+ "vol": "M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298zM16 9a5 5 0 0 1 0 6M19.364 18.364a9 9 0 0 0 0-12.728",+ "cc": "M5 5h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2zM7 15h4M15 15h2M7 11h2M13 11h4",+ "layers": "M0 0m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83ZM0 0m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65M0 0m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",+ "sparkles": "M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",+ "nodes": "M5 3h4a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-4a2 2 0 0 1 -2 -2v-4a2 2 0 0 1 2 -2zM7 11v4a2 2 0 0 0 2 2h4M15 13h4a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-4a2 2 0 0 1 -2 -2v-4a2 2 0 0 1 2 -2z",+ "list": "M3 12h.01M3 18h.01M3 6h.01M8 12h13M8 18h13M8 6h13",+ "heart": "M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",+ "activity": "M22 12h-4l-3 9L9 3l-3 9H2",+ "search": "M3 11a8 8 0 1 0 16 0a8 8 0 1 0 -16 0zM0 0m21 21-4.3-4.3",+ "copy": "M10 8h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2zM4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",+ "trash": "M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2",+ "reset": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8M3 3v5h5",+ "camera": "M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3zM9 13a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z",+ "palette": "M13 6.5a0.5 0.5 0 1 0 1 0a0.5 0.5 0 1 0 -1 0zM17 10.5a0.5 0.5 0 1 0 1 0a0.5 0.5 0 1 0 -1 0zM8 7.5a0.5 0.5 0 1 0 1 0a0.5 0.5 0 1 0 -1 0zM6 12.5a0.5 0.5 0 1 0 1 0a0.5 0.5 0 1 0 -1 0zM12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",+ "music": "M9 18V5l12-2v13M3 18a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM15 16a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z",+ "zap": "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",+ "sun": "M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0zM12 2v2M12 20v2m-7.07-14.07 1.41 1.41m11.32 11.32 1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41",+ "info": "M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0zM12 16v-4M12 8h.01",+ "check": "M20 6 9 17l-5-5",+ "power": "M12 2v10M18.4 6.6a9 9 0 1 1-12.77.04",+ "globe": "M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0zM12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20M2 12h20",+ "box": "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16ZM0 0m3.3 7 8.7 5 8.7-5M12 22V12",+ "split": "M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2zM12 3v18",+ "fit": "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7",+ "wand": "M0 0m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72M14 7l3 3M5 6v4M19 14v4M10 2v2M7 8H3M21 16h-4M11 3H9",+ "undo": "M9 14 4 9l5-5M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5 5.5 5.5 0 0 1-5.5 5.5H11",+ "magnet": "M0 0m6 15-4-4 6.75-6.77a7.79 7.79 0 0 1 11 11L13 22l-4-4 6.39-6.36a2.14 2.14 0 0 0-3-3zM0 0m5 8 4 4M12 15l4 4",+ "gauge": "M0 0m12 14 4-4M3.34 19a10 10 0 1 1 17.32 0",+ "cpu": "M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2zM10 9h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1zM15 2v2M15 20v2M2 15h2M2 9h2M20 15h2M20 9h2M9 2v2M9 20v2",+ "clock": "M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0zM12 6L12 12L16 14",+ "film": "M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2zM7 3v18M3 7.5h4M3 12h18M3 16.5h4M17 3v18M17 7.5h4M17 16.5h4",+ "image": "M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2zM7 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0zM0 0m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",+ "eye": "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0M9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z",+ "monitor": "M4 3h16a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2zM8 21L16 21M12 17L12 21",+ "appwin": "M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2zM10 4v4M2 8h20M6 4v4",+ "wifi": "M12 20h.01M2 8.82a15 15 0 0 1 20 0M5 12.859a10 10 0 0 1 14 0M8.5 16.429a5 5 0 0 1 7 0",+ "key": "M0 0m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4M21 2l-9.6 9.6M2 15.5a5.5 5.5 0 1 0 11 0a5.5 5.5 0 1 0 -11 0z",+ "refresh": "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8M21 3v5h-5M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16M8 16H3v5",+ "pointer": "M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",+ "eyeoff": "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49M14.084 14.158a3 3 0 0 1-4.242-4.242M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143M2 2l20 20",+ "type": "M4 7L4 4L20 4L20 7M9 20L15 20M12 4L12 20",+ "home": "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",+ "unlink": "M0 0m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71M5.17 11.75l-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71M8 2v3M2 8h3M16 22v-3M22 16h-3",+ "import": "M12 3v12M0 0m8 11 4 4 4-4M8 5H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-4",+ "minus": "M5 12h14",+ "dup": "M10 8h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2zM4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",+ "bell": "M10.268 21a2 2 0 0 0 3.464 0M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",+ "back10": "M11 17l-5-5 5-5M18 17l-5-5 5-5",+ "fwd10": "M13 17l5-5-5-5M6 17l5-5-5-5",+ "playfill": "M7 4L20 12L7 20z",+ "pausefill": "M7.2 4h2.1a1.2 1.2 0 0 1 1.2 1.2v13.6a1.2 1.2 0 0 1 -1.2 1.2h-2.1a1.2 1.2 0 0 1 -1.2 -1.2v-13.6a1.2 1.2 0 0 1 1.2 -1.2zM14.7 4h2.1a1.2 1.2 0 0 1 1.2 1.2v13.6a1.2 1.2 0 0 1 -1.2 1.2h-2.1a1.2 1.2 0 0 1 -1.2 -1.2v-13.6a1.2 1.2 0 0 1 1.2 -1.2z"+}diff --git a/qml/Veyra/MinimalPage.qml b/qml/Veyra/MinimalPage.qmlindex b20ceb69..250c4a68 100644--- a/qml/Veyra/MinimalPage.qml+++ b/qml/Veyra/MinimalPage.qml@@ -136,11 +136,10 @@ Item {radius: 16color: cHover.hovered ? Qt.rgba(1, 1, 1, 0.08) : "transparent"}- Text {+ VIcon {anchors.centerIn: parent- text: glyph+ name: glyphcolor: cHover.hovered ? "#FFFFFF" : Theme.t2- font.pixelSize: 14}scale: cTap.pressed ? 0.86 : 1.0Behavior on scale { NumberAnimation { duration: Theme.d(400); easing.bezierCurve: Theme.spring } }@@ -148,8 +147,8 @@ Item {TapHandler { id: cTap; onTapped: cbtn.tapped() }}- CBtn { glyph: "CC"; onTapped: {} }- CBtn { glyph: "⏪"; onTapped: veyra.seekBy(-10) }+ CBtn { glyph: "cc"; onTapped: {} }+ CBtn { glyph: "back10"; onTapped: veyra.seekBy(-10) }// .play: 40px white circle with the play/pause glyph.Item {@@ -160,11 +159,11 @@ Item {radius: 20color: "#FFFFFF"}- Text {+ VIcon {anchors.centerIn: parent- text: (veyra.running && !veyra.paused) ? "❚❚" : "▶"+ name: (veyra.running && !veyra.paused) ? "pausefill" : "playfill"+ filled: truecolor: "#0A0A0C"- font.pixelSize: 14}scale: playTap.pressed ? 0.88 : (playHover.hovered ? 1.06 : 1.0)Behavior on scale { NumberAnimation { duration: Theme.d(450); easing.bezierCurve: Theme.spring } }@@ -172,8 +171,8 @@ Item {TapHandler { id: playTap; onTapped: veyra.togglePlayPause() }}- CBtn { glyph: "⏩"; onTapped: veyra.seekBy(10) }- CBtn { glyph: "♪"; onTapped: {} }+ CBtn { glyph: "fwd10"; onTapped: veyra.seekBy(10) }+ CBtn { glyph: "music"; onTapped: {} }}// .seekrow: mono times either side of the rail.@@ -245,7 +244,7 @@ Item {RowLayout {anchors.fill: parentspacing: 6- Text { text: "🔊"; color: Theme.t2; font.pixelSize: 12 }+ VIcon { name: "vol"; color: Theme.t2 }VSlider {Layout.fillWidth: truefrom: 0; to: 1; value: veyra.volume@@ -256,11 +255,10 @@ Item {Item {implicitWidth: 32; implicitHeight: 32- Text {+ VIcon {anchors.centerIn: parent- text: "⛶"+ name: "max"color: Theme.t2- font.pixelSize: 14}HoverHandler { cursorShape: Qt.PointingHandCursor }TapHandler { onTapped: root.requestPage("pro") }diff --git a/qml/Veyra/NodePage.qml b/qml/Veyra/NodePage.qmlindex a1aa594f..b7960565 100644--- a/qml/Veyra/NodePage.qml+++ b/qml/Veyra/NodePage.qml@@ -76,11 +76,11 @@ Item {VButton {icon: true- glyph: (veyra.running && !veyra.paused) ? "❚❚" : "▶"+ iconName: (veyra.running && !veyra.paused) ? "pause" : "play"onClicked: veyra.togglePlayPause()}- VButton { icon: true; glyph: "⏪"; onClicked: veyra.seekBy(-10) }- VButton { icon: true; glyph: "⏩"; onClicked: veyra.seekBy(10) }+ VButton { icon: true; iconName: "back10"; onClicked: veyra.seekBy(-10) }+ VButton { icon: true; iconName: "fwd10"; onClicked: veyra.seekBy(10) }// .nv-stats: each entry separated by a hairline, mono numbers.RowLayout {@@ -357,7 +357,7 @@ Item {font.weight: Font.DemiBold; font.variableAxes: Theme.axesDemiBold}}- Text { visible: card.locked; text: "🔒"; font.pixelSize: 10; opacity: 0.7 }+ VIcon { visible: card.locked; name: "key"; size: 10; color: Theme.t3 }}}diff --git a/qml/Veyra/ProPage.qml b/qml/Veyra/ProPage.qmlindex b143d634..5ed6401a 100644--- a/qml/Veyra/ProPage.qml+++ b/qml/Veyra/ProPage.qml@@ -33,7 +33,7 @@ Item {spacing: 8VButton {- glyph: "🎬"+ iconName: "video"text: veyra.isCapture ? "采集卡" : "片源"onClicked: sourceMenu.popup()}@@ -47,7 +47,7 @@ Item {current: "list"onPicked: id => { if (id === "node") switchDialog.open() }}- VButton { glyph: "📷"; text: "截图"; onClicked: veyra.takeScreenshot() }+ VButton { iconName: "camera"; text: "截图"; onClicked: veyra.takeScreenshot() }VButton {text: "预设:" + veyra.currentPresetNameonClicked: presetMenu.popup()@@ -97,11 +97,10 @@ Item {spacing: 10Item {implicitWidth: 28; implicitHeight: 28- Text {+ VIcon {anchors.centerIn: parent- text: (veyra.running && !veyra.paused) ? "❚❚" : "▶"+ name: (veyra.running && !veyra.paused) ? "pause" : "play"color: Theme.t2- font.pixelSize: 13}HoverHandler { cursorShape: Qt.PointingHandCursor }TapHandler { onTapped: veyra.togglePlayPause() }@@ -484,7 +483,7 @@ Item {// and a chevron, with nested groups inside.VAccordion {Layout.fillWidth: true- glyph: "✨"+ glyph: "sparkles"hue: "#4F7BFF"title: "超分辨率"summary: (veyra.srEnabled ? "RTX 视频超分" : "已关闭")@@ -525,7 +524,7 @@ Item {VAccordion {Layout.fillWidth: true- glyph: "🪄"+ glyph: "wand"hue: Theme.accenttitle: "NR 画面增强"summary: "每层参数独立 · 强度 " + veyra.nrIntensity.toFixed(2)@@ -706,7 +705,7 @@ Item {VAccordion {Layout.fillWidth: true- glyph: "🎨"+ glyph: "palette"hue: "#E0C341"title: "调色"summary: veyra.colorEnableddiff --git a/qml/Veyra/TopDock.qml b/qml/Veyra/TopDock.qmlindex 8ff41c36..f3931058 100644--- a/qml/Veyra/TopDock.qml+++ b/qml/Veyra/TopDock.qml@@ -29,10 +29,10 @@ Item {// --- page definitions (order and tooltips from core.js) ---------------readonly property var items: [- { id: "min", icon: "🎬", tip: "极简" },- { id: "pro", icon: "⚙", tip: "专业模式" },- { id: "exp", icon: "⬇", tip: "导出" },- { id: "set", icon: "☰", tip: "设置" }+ { id: "min", icon: "tv", tip: "极简" },+ { id: "pro", icon: "sliders", tip: "专业模式" },+ { id: "exp", icon: "upload", tip: "导出" },+ { id: "set", icon: "settings", tip: "设置" }]// .dock-zone { height:12px } and .dock-handle { 44x4, top:5 }@@ -150,10 +150,11 @@ Item {required property var modelDatawidth: 32height: 30- Text {+ // .dock-btn: color rgba(255,255,255,.45), selected #fff.+ VIcon {anchors.centerIn: parent- text: modelData.icon- font.pixelSize: 15+ name: modelData.icon+ color: "#FFFFFF"opacity: dockRoot.currentPage === modelData.id ? 1.0 : 0.45Behavior on opacity { NumberAnimation { duration: Theme.d(200) } }}diff --git a/qml/Veyra/VAccordion.qml b/qml/Veyra/VAccordion.qmlindex 07b880f1..769a5468 100644--- a/qml/Veyra/VAccordion.qml+++ b/qml/Veyra/VAccordion.qml@@ -60,10 +60,10 @@ Rectangle {implicitHeight: 26radius: 8color: Qt.rgba(acc.hue.r, acc.hue.g, acc.hue.b, 0.16)- Text {+ VIcon {anchors.centerIn: parent- text: acc.glyph- font.pixelSize: 13+ name: acc.glyph+ size: 14color: acc.hue}}diff --git a/qml/Veyra/VButton.qml b/qml/Veyra/VButton.qmlindex a1e21bc5..cfdbbac6 100644--- a/qml/Veyra/VButton.qml+++ b/qml/Veyra/VButton.qml@@ -8,9 +8,11 @@ Rectangle {property bool ghost: falseproperty bool icon: falseproperty string glyph: ""+ // A Lucide name from IconData.js; drawn before the text with the design's 7px gap.+ property string iconName: ""signal clicked()- implicitWidth: icon ? Theme.ctlHeight : (label.implicitWidth + 24)+ implicitWidth: icon ? Theme.ctlHeight : (content.implicitWidth + 24)implicitHeight: Theme.ctlHeightradius: Theme.rCtlcolor: primary ? Theme.accent@@ -23,15 +25,27 @@ Rectangle {scale: tap.pressed ? 0.95 : 1.0Behavior on scale { NumberAnimation { duration: Theme.d(400); easing.bezierCurve: Theme.spring } }- Text {- id: label+ Row {+ id: contentanchors.centerIn: parent- text: btn.glyph.length > 0 ? btn.glyph + (btn.text.length > 0 ? " " + btn.text : "") : btn.text- color: btn.primary ? Theme.accentInk : (btn.ghost ? Theme.t2 : Theme.t1)- font.family: Theme.fontUi- font.pixelSize: Theme.fsBody- font.weight: btn.primary ? Font.DemiBold : Font.Medium- font.variableAxes: btn.primary ? Theme.axesDemiBold : ({})+ spacing: 7+ VIcon {+ visible: btn.iconName.length > 0+ anchors.verticalCenter: parent.verticalCenter+ name: btn.iconName+ color: label.color+ }+ Text {+ id: label+ visible: text.length > 0+ anchors.verticalCenter: parent.verticalCenter+ text: btn.glyph.length > 0 ? btn.glyph + (btn.text.length > 0 ? " " + btn.text : "") : btn.text+ color: btn.primary ? Theme.accentInk : (btn.ghost ? Theme.t2 : Theme.t1)+ font.family: Theme.fontUi+ font.pixelSize: Theme.fsBody+ font.weight: btn.primary ? Font.DemiBold : Font.Medium+ font.variableAxes: btn.primary ? Theme.axesDemiBold : ({})+ }}HoverHandler { id: hover; cursorShape: Qt.PointingHandCursor }TapHandler { id: tap; onTapped: btn.clicked() }diff --git a/qml/Veyra/VIcon.qml b/qml/Veyra/VIcon.qmlnew file mode 100644index 00000000..f39a60b3--- /dev/null+++ b/qml/Veyra/VIcon.qml@@ -0,0 +1,37 @@+// A Lucide icon from IconData.js, drawn like the design's svg.i: 24x24 viewBox scaled+// to `size` (16 by default), no fill, stroke 1.7 in the current colour, round caps and+// joins. The stroke width is in viewBox units, as in the SVG, so it scales with size.+import QtQuick+import QtQuick.Shapes+import "IconData.js" as IconData++Item {+ id: icon+ property string name+ property color color: Theme.t1+ property real size: 16+ property real strokeWidth: 1.7+ // .play svg: fill:currentColor; stroke:none (the filled play/pause glyphs).+ property bool filled: false+ readonly property bool known: IconData.paths[name] !== undefined++ implicitWidth: size+ implicitHeight: size++ Shape {+ width: 24+ height: 24+ scale: icon.size / 24+ transformOrigin: Item.TopLeft+ preferredRendererType: Shape.CurveRenderer+ visible: icon.known+ ShapePath {+ fillColor: icon.filled ? icon.color : "transparent"+ strokeColor: icon.filled ? "transparent" : icon.color+ strokeWidth: icon.strokeWidth+ capStyle: ShapePath.RoundCap+ joinStyle: ShapePath.RoundJoin+ PathSvg { path: icon.known ? IconData.paths[icon.name] : "" }+ }+ }+}diff --git a/qml/Veyra/VSelect.qml b/qml/Veyra/VSelect.qmlindex 87604ad8..9ad43b31 100644--- a/qml/Veyra/VSelect.qml+++ b/qml/Veyra/VSelect.qml@@ -29,7 +29,7 @@ Rectangle {font.weight: Font.Mediumelide: Text.ElideRight}- Text { text: "▾"; color: Theme.t3; font.pixelSize: 10 }+ VIcon { name: "down"; size: 14; color: Theme.t3 }}Menu {diff --git a/qml/Veyra/VSubGroup.qml b/qml/Veyra/VSubGroup.qmlindex 8e306a93..df31d81d 100644--- a/qml/Veyra/VSubGroup.qml+++ b/qml/Veyra/VSubGroup.qml@@ -50,10 +50,9 @@ Rectangle {font.family: Theme.fontUifont.pixelSize: 11}- Text {- text: "⌄"+ VIcon {+ name: "down"color: Theme.t3- font.pixelSize: 12rotation: sub.expanded ? 180 : 0Behavior on rotation { NumberAnimation { duration: Theme.d(300); easing.bezierCurve: Theme.spring } }}diff --git a/qml/Veyra/qmldir b/qml/Veyra/qmldirindex 97260222..db3c8a9f 100644--- a/qml/Veyra/qmldir+++ b/qml/Veyra/qmldir@@ -12,6 +12,7 @@ VGroup 1.0 VGroup.qmlVH1 1.0 VH1.qmlVH2 1.0 VH2.qmlVH3 1.0 VH3.qml+VIcon 1.0 VIcon.qmlVPill 1.0 VPill.qmlVRow 1.0 VRow.qmlVSeg 1.0 VSeg.qmldiff --git a/tools/qt_probe/make-icons.py b/tools/qt_probe/make-icons.pynew file mode 100644index 00000000..62a7895f--- /dev/null+++ b/tools/qt_probe/make-icons.py@@ -0,0 +1,82 @@+# G1.4: qml/Veyra/IconData.js from the prototype's icons.js (Lucide, ISC).+# Every SVG element (path, line, polyline, polygon, rect, circle) becomes path data so+# one QML PathSvg per icon can draw it; the coordinates stay in the 24x24 viewBox.+import pathlib, re, sys++root = pathlib.Path(__file__).resolve().parents[2]+src = (root / "prototypes/ui-redesign-2026-09-25/icons.js").read_text(encoding="utf-8")+++def num(v):+ return f"{float(v):g}"+++def rect(a):+ x, y = float(a.get("x", 0)), float(a.get("y", 0))+ w, h = float(a["width"]), float(a["height"])+ r = min(float(a.get("rx", a.get("ry", 0))), w / 2, h / 2)+ if r <= 0:+ return f"M{num(x)} {num(y)}h{num(w)}v{num(h)}h{num(-w)}z"+ return (f"M{num(x + r)} {num(y)}h{num(w - 2 * r)}a{num(r)} {num(r)} 0 0 1 {num(r)} {num(r)}"+ f"v{num(h - 2 * r)}a{num(r)} {num(r)} 0 0 1 {num(-r)} {num(r)}h{num(-(w - 2 * r))}"+ f"a{num(r)} {num(r)} 0 0 1 {num(-r)} {num(-r)}v{num(-(h - 2 * r))}"+ f"a{num(r)} {num(r)} 0 0 1 {num(r)} {num(-r)}z")+++def circle(a):+ cx, cy, r = float(a["cx"]), float(a["cy"]), float(a["r"])+ return (f"M{num(cx - r)} {num(cy)}a{num(r)} {num(r)} 0 1 0 {num(2 * r)} 0"+ f"a{num(r)} {num(r)} 0 1 0 {num(-2 * r)} 0z")+++def points(a, close):+ p = re.findall(r"-?[\d.]+", a["points"])+ pairs = [f"{p[i]} {p[i + 1]}" for i in range(0, len(p), 2)]+ return "M" + "L".join(pairs) + ("z" if close else "")+++def element(tag, attrs):+ a = dict(re.findall(r'([\w-]+)="([^"]*)"', attrs))+ if tag == "path":+ # A leading relative m is absolute inside its own element, but relative to the+ # previous element's end once they are joined; anchor it at the origin.+ d = a["d"].strip()+ return "M0 0" + d if d.startswith("m") else d+ if tag == "line":+ return f"M{a['x1']} {a['y1']}L{a['x2']} {a['y2']}"+ if tag == "polyline":+ return points(a, False)+ if tag == "polygon":+ return points(a, True)+ if tag == "rect":+ return rect(a)+ if tag == "circle":+ return circle(a)+ sys.exit(f"unsupported element {tag}")+++body = src[src.index("const P = {"):src.index("};")]+icons = {}+for name, svg in re.findall(r"^\s*(\w+):\s*'([^']*)'", body, re.M):+ icons[name] = "".join(element(t, at) for t, at in re.findall(r"<(\w+)([^>]*)/>", svg))++# Inline SVGs the prototype writes into pages-a.js instead of icons.js: the 10-second+# skip buttons and the filled play/pause glyphs of the .play button (drawn with fill).+EXTRA = {+ "back10": '<path d="M11 17l-5-5 5-5"/><path d="M18 17l-5-5 5-5"/>',+ "fwd10": '<path d="M13 17l5-5-5-5"/><path d="M6 17l5-5-5-5"/>',+ "playfill": '<polygon points="7 4 20 12 7 20"/>',+ "pausefill": '<rect x="6" y="4" width="4.5" height="16" rx="1.2"/><rect x="13.5" y="4" width="4.5" height="16" rx="1.2"/>',+}+for name, svg in EXTRA.items():+ icons[name] = "".join(element(t, at) for t, at in re.findall(r"<(\w+)([^>]*)/>", svg))++out = ["// Generated by tools/qt_probe/make-icons.py from prototypes/ui-redesign-2026-09-25/icons.js.",+ "// Lucide icons (ISC license, lucide.dev); see THIRD_PARTY_NOTICES.md. Do not edit by hand.",+ "// back10/fwd10/playfill/pausefill are the prototype's own inline SVGs (pages-a.js).",+ ".pragma library", "", "var paths = {"]+out += [f' "{k}": "{v}",' for k, v in icons.items()]+out[-1] = out[-1].rstrip(",")+out.append("}")+(root / "qml/Veyra/IconData.js").write_text("\n".join(out) + "\n", encoding="utf-8")+print(len(icons), "icons")