Skip to content

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.5 M16/M17 scrim fade and dialog spring enter/exit, dialog cut out of the video window

Veyra Goal Agentc5ff8a5b0a1a
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index dfe3e05b..b70141df 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -6615,3 +6615,11 @@ release. 5090 live acceptance, 15-second hitch and user flicker remain unresolve
- 结果:设计峰值 1.0042,QML 峰值 1.0042,chart-menu.png 曲线重合(QML 约晚一采样帧)。
- 回归:`shoot.ps1 -Step g1.5-menu -Frames f-pro,x-menu-src,x-menu-preset` 看图正常;f-pro 的既有差距(质量 seg 无选中、未开片源)属 G3。
- shoot-all 增加 x-menu-src/x-menu-preset 审查态;motion-sample 增加 menu。
+ - M16/M17 对话框(证据 `goal/g1.5-dialog/`):
+ - 遮罩:opacity .2s 线性淡入淡出。
+ - DLayer 改为按 key 显示:scale .9→1 与下移 14px→0,.55s spring,关闭时反向;opacity .2s。
+ - 旧写法把 Behavior 挂在 visible 上,打开没有动画,已修正。
+ - 面板设 videoCover(圆角 16),从视频窗挖出。f-aud 对话框不再被视频遮挡。
+ - 偏差:原生视频画面无法被 QML 遮罩压暗,对话框旁的画面不变暗。
+ - 探针 dialog(设计 capture 对话框):设计峰值 1.0041,QML 峰值 1.0041,chart-dialog.png 曲线重合。
+ - f-cap/f-aud 截图中对话框的内容与尺寸差距(设计有预览、格式行、音轨列表等)属 G3。
diff --git a/prototypes/ui-redesign-2026-09-25/shotpage.js b/prototypes/ui-redesign-2026-09-25/shotpage.js
index 28703417..b9ad87bb 100644
--- a/prototypes/ui-redesign-2026-09-25/shotpage.js
+++ b/prototypes/ui-redesign-2026-09-25/shotpage.js
@@ -111,9 +111,17 @@
getComputedStyle(pop).scale; pop.classList.add('open'); getComputedStyle(pop).scale;
};
read = () => (+getComputedStyle(pop).scale).toFixed(4);
+ } else if (probe === 'dialog') {
+ // The capture dialog; .dlg scale .9 -> 1. Like the menu, .open is added here.
+ start = () => {
+ app.dialog('capture');
+ const scrim = root.querySelector('.scrim');
+ getComputedStyle(scrim.firstElementChild).scale; scrim.classList.add('open'); getComputedStyle(scrim.firstElementChild).scale;
+ };
+ read = () => (+getComputedStyle(root.querySelector('.scrim .dlg')).scale).toFixed(4);
} else return;
start();
- if (probe === 'menu') { sample(); return; } // the transitions exist now; waiting lets them finish
+ if (probe === 'menu' || probe === 'dialog') { sample(); return; } // the transitions exist now; waiting lets them finish
// The page switch shows the new page 150 ms later; wait for its animations to exist.
setTimeout(sample, probe === 'page' ? 200 : 30);
function sample() {
diff --git a/qml/Veyra/DialogHost.qml b/qml/Veyra/DialogHost.qml
index 8bc70265..b9a1bcb8 100644
--- a/qml/Veyra/DialogHost.qml
+++ b/qml/Veyra/DialogHost.qml
@@ -28,13 +28,19 @@ Item {
signal startPs5()
signal startScreen()
- // Scrim: the design dims the page behind the dialog.
+ // Scrim (M16): the design dims the page behind the dialog, opacity .2s linear.
+ // The native video window cannot be dimmed from QML; only the dialog panel is cut
+ // out of it (videoCover below), so the picture beside the dialog stays undimmed.
Rectangle {
anchors.fill: parent
color: Qt.rgba(0, 0, 0, 0.55)
- visible: host.dialog !== ""
+ opacity: host.dialog !== "" ? 1 : 0
+ visible: opacity > 0
+ Behavior on opacity { NumberAnimation { duration: Theme.d(200) } }
TapHandler { onTapped: host.close() }
}
+ // For the motion probe: the open dialog's scale.
+ property real motionScale: 1
// --- shared chrome ----------------------------------------------------
component DLayer: Rectangle {
@@ -47,6 +53,36 @@ Item {
default property alias body: bodyCol.data
signal actionTriggered(string label)
+ // Which dialog key shows this layer.
+ property string key: ""
+ readonly property bool shown: key.length > 0 && host.dialog === key
+ // M17: .dlg scale .9 -> 1 and translate 0 14px -> 0 over .55s --spring inside the
+ // scrim's .2s fade; closing runs the same back while the scrim fades out.
+ property real motionS: 0.9
+ property real motionDy: 14
+ onShownChanged: { if (shown) { motionS = 0.9; motionDy = 14; enterAnim.restart() } else exitAnim.restart() }
+ onMotionSChanged: if (shown) host.motionScale = motionS
+ ParallelAnimation {
+ id: enterAnim
+ NumberAnimation { target: dlg; property: "motionS"; to: 1; duration: Theme.d(550); easing.bezierCurve: Theme.spring }
+ NumberAnimation { target: dlg; property: "motionDy"; to: 0; duration: Theme.d(550); easing.bezierCurve: Theme.spring }
+ }
+ ParallelAnimation {
+ id: exitAnim
+ NumberAnimation { target: dlg; property: "motionS"; to: 0.9; duration: Theme.d(550); easing.bezierCurve: Theme.spring }
+ NumberAnimation { target: dlg; property: "motionDy"; to: 14; duration: Theme.d(550); easing.bezierCurve: Theme.spring }
+ }
+ opacity: shown ? 1 : 0
+ visible: opacity > 0
+ Behavior on opacity { NumberAnimation { duration: Theme.d(200) } }
+ transform: [
+ Scale { origin.x: dlg.width / 2; origin.y: dlg.height / 2; xScale: dlg.motionS; yScale: dlg.motionS },
+ Translate { y: dlg.motionDy }
+ ]
+ // Cut out of the native video window (main.cpp syncVideoCovers).
+ objectName: "videoCover"
+ property real coverRadius: 16
+
anchors.centerIn: parent
width: dialogWidth
implicitHeight: Math.min(720, header.height + bodyScroll.contentHeight + footer.height + 40)
@@ -55,9 +91,6 @@ Item {
color: Theme.dialog
border.width: 1
border.color: Theme.stroke2
- visible: host.dialog !== ""
- scale: visible ? 1.0 : 0.9
- Behavior on scale { NumberAnimation { duration: Theme.d(550); easing.bezierCurve: Theme.spring } }
ColumnLayout {
anchors.fill: parent
@@ -133,7 +166,7 @@ Item {
// --- 采集卡 -----------------------------------------------------------
DLayer {
- visible: host.dialog === "capture"
+ key: "capture"
glyph: "video"
title: "采集卡"
sub: "连接设备后,先关闭增强确认基础画面,再按需开启"
@@ -188,7 +221,7 @@ Item {
// --- PS5 串流 ---------------------------------------------------------
DLayer {
- visible: host.dialog === "ps5"
+ key: "ps5"
glyph: "gamepad"
title: "PS5 串流"
sub: "局域网 Remote Play · 凭据加密保存在本机"
@@ -238,7 +271,7 @@ Item {
// --- 屏幕捕获 ---------------------------------------------------------
DLayer {
- visible: host.dialog === "screen"
+ key: "screen"
glyph: "monitor"
title: "屏幕捕获"
sub: "把一个窗口或整块显示器作为片源"
@@ -280,7 +313,7 @@ Item {
// --- 字幕设置 ---------------------------------------------------------
DLayer {
- visible: host.dialog === "subtitle"
+ key: "subtitle"
glyph: "type"
title: "字幕设置"
sub: "实时预览,设置对所有文件生效"
@@ -297,7 +330,7 @@ Item {
// --- 音频设置 ---------------------------------------------------------
DLayer {
- visible: host.dialog === "audio"
+ key: "audio"
glyph: "music"
title: "音频设置"
dialogWidth: 560
@@ -400,7 +433,7 @@ Item {
// the user can see what they are about to store.
DLayer {
id: saveDialog
- visible: host.dialog === "save"
+ key: "save"
glyph: "plus"
title: "另存为预设"
sub: "预设会保存下面勾选的部分;应用时只覆盖勾选的部分"
@@ -463,7 +496,7 @@ Item {
// --- 管理预设 ---------------------------------------------------------
DLayer {
- visible: host.dialog === "manage"
+ key: "manage"
glyph: "settings"
title: "管理预设"
sub: "内置预设可以复制,不能改名或删除"
diff --git a/qml/Veyra/Main.qml b/qml/Veyra/Main.qml
index 184819e0..fc25251b 100644
--- a/qml/Veyra/Main.qml
+++ b/qml/Veyra/Main.qml
@@ -266,6 +266,7 @@ Window {
else if (name === "page") root.page = "pro"
else if (name === "switch") probeSwitch.item.checked = true
else if (name === "menu") proPage.openTestMenu("source")
+ else if (name === "dialog") dialogs.open("capture")
else if (name === "seg") { probe.x0 = probeSeg.item.indicatorX; probeSeg.item.current = "c"; probe.x1 = probeSeg.item.targetX }
probe.t0 = Date.now()
probe.running = true
@@ -284,6 +285,7 @@ Window {
if (name === "dock") v = dock.barY
else if (name === "page") v = proPage.opacity + "," + proPage.y
else if (name === "menu") v = proPage.testMenuScale.toFixed(4)
+ else if (name === "dialog") v = dialogs.motionScale.toFixed(4)
else if (name === "seg") v = ((probeSeg.item.indicatorX - x0) / (x1 - x0)).toFixed(4)
else if (probeSwitch.item) v = probeSwitch.item.children[0].x - 3
else return
diff --git a/tools/qt_probe/motion-sample.ps1 b/tools/qt_probe/motion-sample.ps1
index 77d59ca5..d2f353dd 100644
--- a/tools/qt_probe/motion-sample.ps1
+++ b/tools/qt_probe/motion-sample.ps1
@@ -17,7 +17,7 @@ $proto = Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) 'prot
$profile = 'E:\项目\Veyra\tmp\ui-qml-migration-20260925\edge-profile'
$log = Join-Path $App 'logs\veyra-qml.log'
# Where each motion lives in the design: the switch sits on the capture dialog.
-$designFrame = @{ dock = 'f-home'; switch = 'f-cap'; page = 'f-home'; seg = 'f-cap'; menu = 'f-pro' }
+$designFrame = @{ dock = 'f-home'; switch = 'f-cap'; page = 'f-home'; seg = 'f-cap'; menu = 'f-pro'; dialog = 'f-home' }
function Read-Curve([string[]]$lines) {
# "t,value" or "t,opacity,y": the curve is the last column.