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): G2.5 fullscreen control window, auto-hide, Ctrl+L lock
Veyra Goal Agenta2d9b1fb18df
diff --git a/apps/veyra-qml/main.cpp b/apps/veyra-qml/main.cppindex 55861ad7..1e558f2a 100644--- a/apps/veyra-qml/main.cpp+++ b/apps/veyra-qml/main.cpp@@ -212,6 +212,8 @@ int main(int argc, char** argv) {// --size <W>x<H> window size in device-independent pixels// --reduced-motion every animation at zero duration// --slow-animations <N> every animation N times slower (motion sampling)+ // --full-bar <shown|hidden> fullscreen with the control window held shown / hidden+ // --full-debug log every pointer movement the fullscreen controls see// --motion-probe <name> dock | page | switch | seg | menu: start that motion, log its value per frameconst QStringList args = QCoreApplication::arguments();QString openPath;@@ -235,6 +237,10 @@ int main(int argc, char** argv) {} else if (a == QLatin1String("--export-out") && hasValue) {// A review run's export target, so a real export starts without the dialog.bridge.setExportPath(args.at(++i));+ } else if (a == QLatin1String("--full-bar") && hasValue) {+ testOptions.insert(QStringLiteral("fullBar"), args.at(++i));+ } else if (a == QLatin1String("--full-debug")) {+ testOptions.insert(QStringLiteral("fullDebug"), true);} else if (a == QLatin1String("--dock-pinned")) {testOptions.insert(QStringLiteral("dockPinned"), true);} else if (a == QLatin1String("--size") && hasValue) {diff --git a/docs/UI_FULL_GOAL_PLAN_2026-09-26.md b/docs/UI_FULL_GOAL_PLAN_2026-09-26.mdindex d54e5044..736dc832 100644--- a/docs/UI_FULL_GOAL_PLAN_2026-09-26.md+++ b/docs/UI_FULL_GOAL_PLAN_2026-09-26.md@@ -11,7 +11,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.6 | G1.1–G1.6 完成(Qt 6.8.3:BezierSpline ≤10 段;CurveRenderer 不能用 fillItem;可变字体 600 须设 wght 轴;Popup 无 transform;视频子窗用 videoCover 挖区);动效探针 dock/page/switch/seg/menu/dialog;Quick Test 8/8;M28/M29 曲线未执行;下一步 G2 |-| G2 外壳 | 进行中 | checkpoint/ui-mig-g2.4 | G2.1 dock 热区;G2.2 页面切换 sink/rise(探针同曲线);G2.3 视频窗随渲染帧同步;G2.4 拖放/快捷键/V 看原画/电源/导出徽标/toast(拖放后画面截图未执行:显示器休眠);下一步 G2.5 全屏独立控制条 |+| G2 外壳 | 完成 | checkpoint/ui-mig-g2.5 | G2.1 dock 热区;G2.2 页面切换 sink/rise(探针同曲线);G2.3 视频窗随渲染帧同步;G2.4 拖放/快捷键/V 看原画/电源/导出徽标/toast;G2.5 全屏独立控制窗(CineBar 抽出共用)、1.6s 自动隐藏、Ctrl+L 锁定——PresentMon 未安装,用引擎 present P95 对比显示/隐藏无退化(D1 保留独立窗);显示器休眠期间截图未执行(拖放后画面、全屏条待亮屏复拍);下一步 G3 || G3 四主屏 | 未开始 | | || B1 小项 + 桥接补齐 | 未开始 | | || B2 导出补齐(S2.5) | 未开始 | | |diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex db4322e4..99dbebf7 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -6673,3 +6673,11 @@ release. 5090 live acceptance, 15-second hitch and user flicker remain unresolve- 环境问题(2026-09-26 00:00 前后):拖放截图画面区为黑、之后 hover 不出 dock、motion-probe 无输出——HEAD(stash 后重建)同样复现,DWM 计时 `refreshes/s=1 composed/s=1`(tmp/.../dwm-vblank.ps1),判断为显示器休眠导致合成/帧驱动停摆,不是本次代码问题。曾尝试延迟 open(QML Timer / QTimer)排查,均已撤回。- 未执行:拖放后画面截图(显示器休眠,待亮屏复拍);toast 动效逐帧探针;导出文件内容校验。+- G2.5 全屏控制条(`checkpoint/ui-mig-g2.5`,证据 `goal/g2.5/`):+ - 新 `CineBar.qml`:极简页播放条抽成组件(传输行/进度行/预设菜单),极简页与全屏共用;全屏时多一个锁定按钮,最大化按钮改为切全屏(原先误跳专业页)。+ - 新 `FullscreenBar.qml`:独立顶层 Window(Tool|Frameless|WindowDoesNotAcceptFocus,transientParent=主窗),居中距底 24px;高出 440px 给预设菜单向上展开,`veyra.setWindowMask`(新桥接方法,QWindow::setMask)只让药丸(菜单打开时整窗)接指针;淡出 .2s 完成后整窗隐藏,隐藏时不参与合成。+ - Main.qml:`fullTarget` 在切 visibility 前置位,修正进全屏时影院高度规则把窗口从 2560x1440 动画缩回 2560x812;全屏时视频占满窗口(home/set 除外);指针真实移动(≥1px,过滤动画期间的 hover 重复)显示控件,静止 1600ms 隐藏并隐藏光标;双击退出;Ctrl+L `toggleLock()` 锁定后指针不再唤出控件。+ - 测试开关:`--full-bar <shown|hidden>`(进全屏并固定控件状态)、`--full-debug`。+ - 日志实测(probe1..3):F11 → control window visible=true / enabled=true → 1.6s 后 controls hidden、visible=false → 移动指针重新出现 → Ctrl+L locked=true 窗隐藏、移动不出现 → 再 Ctrl+L 解锁出现 → Esc enabled=false、视频窗回 1280x720。+ - 对比(`tools/qt_probe/fullbar-compare.ps1`,test_av_1080p.mp4,20s×2 轮,各 15 行 player-timing 均值,ms):shown-1 present .316 / gpuReady 1.561 / graphSubmit .135 / returnAbs .715 / 60.7 提交每行;hidden-1 .376/1.541/.162/.779/60.6;shown-2 .411/1.546/.152/.793/60.4;hidden-2 .32/1.575/.141/.735/60.6。差异在噪声内、方向不一致,无可复现退化,按 D1 保留独立窗。summary.json 在 `goal/g2.5/compare/`。+ - 未执行:PresentMon(本机未安装,以上为引擎 present 计时,不是显示端计时);显示器休眠(DWM refreshes/s=1)期间的全部截图/目视;锁定按钮与条内预设菜单的实际点击;多显示器下的条位置。diff --git a/include/veyra/ui/QmlPlayerBridge.h b/include/veyra/ui/QmlPlayerBridge.hindex 04f46d82..1e8f1985 100644--- a/include/veyra/ui/QmlPlayerBridge.h+++ b/include/veyra/ui/QmlPlayerBridge.h@@ -25,6 +25,7 @@// not offered until the engine side exists.#include <QObject>#include <QString>+#include <QRectF>#include <QUrl>#include <QVariantList>#include <QVariantMap>@@ -471,6 +472,9 @@ public:Q_INVOKABLE void openUrl(const QUrl& url);// UI events the shell logs (fullscreen, lock) under the given channel.Q_INVOKABLE void logUi(const QString& channel, const QString& text);+ // Limits a window's pointer input to a rectangle (QWindow::setMask); the+ // fullscreen bar window uses it so only its pill takes the pointer.+ Q_INVOKABLE void setWindowMask(QObject* window, const QRectF& rect);Q_INVOKABLE void stepFrame(int direction);Q_INVOKABLE void takeScreenshot();Q_INVOKABLE void chooseExportPath();diff --git a/qml/Veyra/CineBar.qml b/qml/Veyra/CineBar.qmlnew file mode 100644index 00000000..45763780--- /dev/null+++ b/qml/Veyra/CineBar.qml@@ -0,0 +1,242 @@+// The cinema control pill (pages-a.js .cine-bar, pages.css .cine-bar), shared by the+// minimal page and the fullscreen control window (G2.5). Only the pill: where it+// sits and how it enters belong to the owner.+//+// .cine-bar: 3 columns (230px | 1fr | 230px), 92px tall, radius 30. The design's+// frosted glass cannot sample a native video window, so the fill is the opaque+// approximation rgba(22,22,26,.86) (D5).+import QtQuick+import QtQuick.Controls+import QtQuick.Layouts++Rectangle {+ id: bar+ signal requestPage(string page)+ signal requestFullscreen()+ signal requestLock()+ // Set on the fullscreen bar: shows the lock button.+ property bool fullscreen: false+ // The preset menu is open: an owner window that hides the bar on a timer waits.+ readonly property bool menuOpen: presetMenu.visible+ // The pointer is over the pill.+ readonly property bool hovered: barHover.hovered+ HoverHandler { id: barHover }+ implicitHeight: 92+ radius: 30+ color: Qt.rgba(22 / 255, 22 / 255, 26 / 255, 0.86)+ border.width: 1+ border.color: Qt.rgba(1, 1, 1, 0.1)++ RowLayout {+ anchors.fill: parent+ anchors.leftMargin: 14+ anchors.rightMargin: 18+ spacing: 18++ // --- left: artwork + title (230px) ---------------------------+ RowLayout {+ Layout.preferredWidth: 230+ Layout.fillHeight: true+ spacing: 10+ Rectangle {+ implicitWidth: 46; implicitHeight: 46; radius: 12+ color: Theme.videoBlack+ border.width: 1+ border.color: Theme.stroke+ }+ ColumnLayout {+ Layout.fillWidth: true+ Layout.alignment: Qt.AlignVCenter+ spacing: 2+ Text {+ Layout.fillWidth: true+ text: veyra.sourceName.length > 0 ? veyra.sourceName : "未打开"+ color: Theme.t1+ font.family: Theme.fontUi+ font.pixelSize: 13+ font.weight: Font.DemiBold; font.variableAxes: Theme.axesDemiBold+ elide: Text.ElideRight+ }+ Text {+ Layout.fillWidth: true+ text: veyra.sourceSummary+ color: Theme.t3+ font.family: Theme.fontUi+ font.pixelSize: 11+ elide: Text.ElideRight+ }+ }+ }++ // --- middle: transport + seek --------------------------------+ ColumnLayout {+ Layout.fillWidth: true+ Layout.alignment: Qt.AlignVCenter+ spacing: 4++ RowLayout {+ Layout.alignment: Qt.AlignHCenter+ spacing: 10++ // .cbtn: 32px round, muted, brightens on hover.+ component CBtn: Item {+ id: cbtn+ property string glyph: ""+ property string tip: ""+ // The signal has to be declared: an inline component does not+ // inherit the TapHandler's signal, so callers cannot assign+ // onTapped without it.+ signal tapped()+ implicitWidth: 32+ implicitHeight: 32+ Rectangle {+ anchors.fill: parent+ radius: 16+ color: cHover.hovered ? Qt.rgba(1, 1, 1, 0.08) : "transparent"+ }+ VIcon {+ anchors.centerIn: parent+ name: glyph+ color: cHover.hovered ? "#FFFFFF" : Theme.t2+ }+ scale: cTap.pressed ? 0.86 : 1.0+ Behavior on scale { NumberAnimation { duration: Theme.d(400); easing.bezierCurve: Theme.spring } }+ HoverHandler { id: cHover; cursorShape: Qt.PointingHandCursor }+ TapHandler { id: cTap; onTapped: cbtn.tapped() }+ }++ CBtn { glyph: "cc"; onTapped: {} }+ CBtn { glyph: "back10"; onTapped: veyra.seekBy(-10) }++ // .play: 40px white circle with the play/pause glyph.+ Item {+ implicitWidth: 40+ implicitHeight: 40+ Rectangle {+ anchors.fill: parent+ radius: 20+ color: "#FFFFFF"+ }+ VIcon {+ anchors.centerIn: parent+ name: (veyra.running && !veyra.paused) ? "pausefill" : "playfill"+ filled: true+ color: "#0A0A0C"+ }+ scale: playTap.pressed ? 0.88 : (playHover.hovered ? 1.06 : 1.0)+ Behavior on scale { NumberAnimation { duration: Theme.d(450); easing.bezierCurve: Theme.spring } }+ HoverHandler { id: playHover; cursorShape: Qt.PointingHandCursor }+ TapHandler { id: playTap; onTapped: veyra.togglePlayPause() }+ }++ CBtn { glyph: "fwd10"; onTapped: veyra.seekBy(10) }+ CBtn { glyph: "music"; onTapped: {} }+ }++ // .seekrow: mono times either side of the rail.+ RowLayout {+ Layout.fillWidth: true+ spacing: 10+ Text {+ text: veyra.positionText+ color: Theme.t3+ font.family: Theme.fontMono+ font.pixelSize: 10+ }+ Item {+ Layout.fillWidth: true+ implicitHeight: 14+ Rectangle {+ id: rail+ anchors.verticalCenter: parent.verticalCenter+ width: parent.width+ height: seekHover.hovered ? 6 : 3+ radius: 9+ color: Qt.rgba(1, 1, 1, 0.14)+ Behavior on height { NumberAnimation { duration: Theme.d(300); easing.bezierCurve: Theme.spring } }+ Rectangle {+ width: parent.width * Math.max(0, Math.min(1, veyra.progress))+ height: parent.height+ radius: 9+ color: "#FFFFFF"+ }+ }+ HoverHandler { id: seekHover; cursorShape: Qt.PointingHandCursor }+ TapHandler {+ onTapped: point => {+ const f = Math.max(0, Math.min(1, point.position.x / width))+ veyra.seekTo(f * veyra.duration)+ }+ }+ }+ Text {+ text: veyra.durationText+ color: Theme.t3+ font.family: Theme.fontMono+ font.pixelSize: 10+ }+ }+ }++ // --- right: preset, volume, fullscreen (230px) ---------------+ RowLayout {+ Layout.preferredWidth: 230+ Layout.alignment: Qt.AlignVCenter | Qt.AlignRight+ spacing: 6++ // .pill with a status dot: the dot reports the engine's state, and+ // the label is the preset actually in use.+ VPill {+ key: ""+ value: veyra.currentPresetName+ onClicked: presetMenu.openAt(this, "up")+ Rectangle {+ width: 7; height: 7; radius: 3.5+ color: veyra.failed ? Theme.err : veyra.captureRecovering ? Theme.warn : Theme.ok+ }+ }++ Item {+ implicitWidth: 92+ implicitHeight: 20+ RowLayout {+ anchors.fill: parent+ spacing: 6+ VIcon { name: "vol"; color: Theme.t2 }+ VSlider {+ Layout.fillWidth: true+ from: 0; to: 1; value: veyra.volume+ onMoved: veyra.volume = value+ }+ }+ }++ Item {+ implicitWidth: 32; implicitHeight: 32+ VIcon {+ anchors.centerIn: parent+ name: "max"+ color: Theme.t2+ }+ HoverHandler { cursorShape: Qt.PointingHandCursor }+ TapHandler { onTapped: root.requestPage("pro") }+ }+ }+ }++ // The preset menu: list presets and node presets in one menu, as designed.+ // pages-a.js presetMenu: list presets, node presets, then the way to manage them.+ VMenu {+ id: presetMenu+ title: "预设"+ readonly property var mk: p => ({ label: p.name, note: p.note, checked: p.name === veyra.currentPresetName,+ tag: p.nodeMode ? "节点" : "", preset: p.index })+ items: [{ head: "列表预设" }].concat(veyra.presets.filter(p => !p.nodeMode).map(mk))+ .concat([{ head: "节点预设" }]).concat(veyra.presets.filter(p => p.nodeMode).map(mk))+ .concat([{ sep: true }, { label: "去专业模式管理预设…", icon: "sliders", act: "pro" }])+ onPicked: (i, o) => {+ if (o.act === "pro") bar.requestPage("pro")+ else veyra.applyPresetIndex(o.preset)+ }+ }+}diff --git a/qml/Veyra/FullscreenBar.qml b/qml/Veyra/FullscreenBar.qmlnew file mode 100644index 00000000..bf61a915--- /dev/null+++ b/qml/Veyra/FullscreenBar.qml@@ -0,0 +1,82 @@+// G2.5: the fullscreen control bar, in its own top-level window.+//+// In fullscreen the picture is the whole screen, and the native D3D12 video window+// is drawn above everything in the main window's scene. A bar in the main scene+// would need a hole cut out of the picture; the design (and D1 in the goal plan)+// puts it in a separate small window instead. It is owned by the main window+// (always above it, never above other applications), takes no keyboard focus (the+// shortcuts stay with the main window), and is hidden outright when the controls+// hide, so a hidden bar composes nothing over the video.+//+// The window is taller than the pill so the preset menu can open upwards inside it;+// the pointer only hits the pill (or the open menu) because the rest is masked off.+import QtQuick+import QtQuick.Window++Window {+ id: win+ objectName: "fullscreenBar"+ required property Window owner+ property bool shown: false+ signal requestPage(string page)+ signal requestFullscreen()+ signal requestLock()+ // Pointer movement over the bar keeps the controls up (the main window cannot+ // see it here).+ signal activity()+ readonly property bool hovered: bar.hovered+ readonly property bool menuOpen: bar.menuOpen++ transientParent: owner+ flags: Qt.Tool | Qt.FramelessWindowHint | Qt.WindowDoesNotAcceptFocus+ color: "transparent"++ // Room for the pill plus the preset menu above it (VMenu is at most 420 tall).+ readonly property int menuRoom: 440+ readonly property int barWidth: Math.min(860, owner.width - 48)+ width: barWidth+ height: 92 + menuRoom+ // Centred, 24px above the screen's bottom edge (the design's 24px side margin).+ x: owner.x + Math.round((owner.width - width) / 2)+ y: owner.y + owner.height - height - 24++ // Hidden outright rather than transparent, so it composes nothing over the video+ // (the PresentMon comparison in the plan measures exactly this). The fade is+ // the design's control fade: opacity .2s; the window goes when it finishes.+ property real fade: shown ? 1 : 0+ Behavior on fade { NumberAnimation { duration: Theme.d(200) } }+ visible: shown || fade > 0.01+ onVisibleChanged: veyra.logUi("ui-fullscreen", "control window visible=" + visible)++ // Only the pill takes the pointer; with the menu open, the whole window does,+ // so a click beside the menu closes it instead of falling through to the picture.+ readonly property rect hitRect: menuOpen ? Qt.rect(0, 0, width, height)+ : Qt.rect(0, menuRoom, width, 92)+ onHitRectChanged: veyra.setWindowMask(win, hitRect)+ Component.onCompleted: veyra.setWindowMask(win, hitRect)++ CineBar {+ id: bar+ x: 0+ y: win.menuRoom+ width: win.width+ height: 92+ fullscreen: true+ opacity: win.fade+ // barIn-like rise while showing: translate 30px -> 0 with the fade.+ transform: Translate { y: (1 - win.fade) * 30 }+ onRequestPage: p => win.requestPage(p)+ onRequestFullscreen: win.requestFullscreen()+ onRequestLock: win.requestLock()+ HoverHandler {+ // Real movement only: hover repeats while the bar animates.+ property point last: Qt.point(-1, -1)+ onPointChanged: {+ const p = point.scenePosition+ if (Math.abs(p.x - last.x) < 1 && Math.abs(p.y - last.y) < 1) return+ last = p+ win.activity()+ }+ }+ }+}diff --git a/qml/Veyra/Main.qml b/qml/Veyra/Main.qmlindex 9a0e6871..58e3021c 100644--- a/qml/Veyra/Main.qml+++ b/qml/Veyra/Main.qml@@ -47,15 +47,15 @@ Window {function fitToFilm(aspect) {if (aspect > 0.2 && aspect < 5.0) filmAspect = aspect- if (cinema) height = Math.round(pictureHeight + barBelow)+ if (cinema && !fullTarget) height = Math.round(pictureHeight + barBelow)}// .vy.cine transition: height .7s var(--spring-soft)Behavior on height {- enabled: root.cinema+ enabled: root.cinema && !root.fullTargetNumberAnimation { duration: Theme.d(700); easing.bezierCurve: Theme.springSoft }}onWidthChanged: {- if (cinema) height = Math.round(pictureHeight + barBelow)+ if (cinema && !fullTarget) height = Math.round(pictureHeight + barBelow)videoHost.syncRect()}// The window height animates towards the film's aspect, so the picture area has@@ -67,7 +67,8 @@ Window {// Tell the bridge where the user is, so a command like "open a file" can// behave differently from home than from the professional page.if (veyra.currentPage !== page) veyra.currentPage = page- if (cinema) height = Math.round(pictureHeight + barBelow)+ if (fullTarget) { /* the screen is the window */ }+ else if (cinema) height = Math.round(pictureHeight + barBelow)else if (height < 600) height = 800// core.js app.go: the old page sinks (.22s) and the new one shows 150 ms// later with its [data-in] items rising. Reduced motion shows it at once.@@ -129,6 +130,10 @@ Window {// numbers rather than read from a laid-out child. A child reports 0x0 on the// frame the user opens a file, and that once produced a 1x1 swapchain.function videoRect() {+ // Fullscreen is a video-only viewport (AppShell): the picture is the screen+ // and the controls float above it in their own window (FullscreenBar).+ if (fullscreen && page !== "home" && page !== "set")+ return { x: 0, y: 0, width: width, height: height }switch (page) {case "min":// .min .stage: full width, height = the picture height.@@ -160,6 +165,10 @@ Window {Item {id: pagesanchors.fill: parent+ // In fullscreen the picture covers the page, and the native video window+ // passes the pointer through: a hidden page control must not take a click+ // meant for the picture.+ visible: !root.fullscreen || root.page === "home" || root.page === "set"// Each page is shown while current or while sinking out; the sinking one// takes no input (.page.leave { pointer-events: none }).HomePage { pageId: "home"; onRequestPage: p => root.page = p }@@ -167,6 +176,7 @@ Window {pageId: "min"onRequestPage: p => root.page = ponRequestAspect: aspect => { if (root.testAspect <= 0) root.fitToFilm(aspect) }+ onRequestFullscreen: root.toggleFullscreen()}ProPage {id: proPage@@ -220,13 +230,87 @@ Window {// keys (Qt's shortcut override), so typing in a field never seeks. V (hold for// the original picture) needs its release as well; main.cpp handles it.readonly property bool fullscreen: visibility === Window.FullScreen+ // Set before the visibility changes: Windows resizes the window first, and the+ // cinema rule would otherwise snap that fullscreen size back to the film.+ property bool fullTarget: falseproperty bool fullLocked: false- onFullscreenChanged: if (!fullscreen) fullLocked = false+ onFullscreenChanged: {+ fullTarget = fullscreen+ if (!fullscreen) {+ fullLocked = false+ if (cinema) height = Math.round(pictureHeight + barBelow)+ }+ fullControls = true+ fullHide.restart()+ videoHost.syncRect()+ }function toggleFullscreen() {fullLocked = false- visibility = fullscreen ? Window.Windowed : Window.FullScreen+ fullTarget = !fullscreen+ visibility = fullTarget ? Window.FullScreen : Window.Windowedveyra.logUi("ui-fullscreen", "enabled=" + fullscreen)}++ // G2.5 fullscreen controls. AppShell: any pointer movement shows the transport,+ // and 1.6 s without movement hides it (and the cursor) unless the pointer rests+ // on the bar or a menu is open; Ctrl+L locks it away. The bar is its own+ // top-level window (FullscreenBar.qml), because the native video window draws+ // above everything in this one.+ property bool fullControls: true+ function pointerActivity() {+ if (!fullscreen || fullLocked || root.test.fullBar === "hidden") return+ if (root.test.fullDebug === true) veyra.logUi("ui-fullscreen-debug", "pointer activity")+ if (!fullControls) { fullControls = true; veyra.logUi("ui-fullscreen", "controls shown by pointer") }+ fullHide.restart()+ }+ Timer {+ id: fullHide+ interval: 1600+ onTriggered: {+ if (!root.fullscreen || !root.fullControls) return+ if (fullBar.hovered || fullBar.menuOpen || root.test.fullBar === "shown") { restart(); return }+ root.fullControls = false+ veyra.logUi("ui-fullscreen", "controls hidden; video and subtitles only")+ }+ }+ // Every pointer move over this window (a HoverHandler sees them all, whatever+ // item is under the pointer; the video window passes them through). The cursor+ // hides with the controls, as in AppShell.+ HoverHandler {+ id: pointerWatch+ cursorShape: root.fullscreen && (!root.fullControls || root.fullLocked) ? Qt.BlankCursor : Qt.ArrowCursor+ // Qt re-sends hover while anything animates under a still pointer; only a+ // real change of position counts as movement.+ property point last: Qt.point(-1, -1)+ onPointChanged: {+ const p = point.scenePosition+ if (Math.abs(p.x - last.x) < 1 && Math.abs(p.y - last.y) < 1) return+ last = p+ root.pointerActivity()+ }+ }+ // AppShell VideoSurface: a double click on the picture leaves fullscreen,+ // unless locked.+ TapHandler {+ enabled: root.fullscreen && !root.fullLocked+ onDoubleTapped: root.toggleFullscreen()+ }+ FullscreenBar {+ id: fullBar+ owner: root+ shown: root.fullscreen && root.fullControls && !root.fullLocked && veyra.hasSource+ onRequestPage: p => { root.toggleFullscreen(); root.page = p }+ onRequestFullscreen: root.toggleFullscreen()+ onRequestLock: root.toggleLock()+ onActivity: root.pointerActivity()+ }+ function toggleLock() {+ fullLocked = !fullLocked+ if (fullLocked) dock.opened = false+ else { fullControls = true; fullHide.restart() }+ toast.show(fullLocked ? "已锁定全屏 · Ctrl+L 解锁,Esc 退出全屏" : "已解锁全屏", false)+ veyra.logUi("ui-fullscreen", "locked=" + fullLocked + " shortcut=Ctrl+L")+ }function subtitleKey(k) { toast.show("字幕尚未接入(" + k + ")", true) }Shortcut { sequence: "Space"; onActivated: veyra.togglePlayPause() }Shortcut { sequences: ["F11", "Alt+Return", "Alt+Enter"]; onActivated: root.toggleFullscreen() }@@ -240,12 +324,7 @@ Window {Shortcut {sequence: "Ctrl+L"enabled: root.fullscreen- onActivated: {- root.fullLocked = !root.fullLocked- if (root.fullLocked) dock.opened = false- toast.show(root.fullLocked ? "已锁定全屏 · Ctrl+L 解锁,Esc 退出全屏" : "已解锁全屏", false)- veyra.logUi("ui-fullscreen", "locked=" + root.fullLocked + " shortcut=Ctrl+L")- }+ onActivated: root.toggleLock()}Shortcut { sequence: "B"; onActivated: root.subtitleKey("B") }Shortcut { sequences: ["Z", "Shift+Z"]; onActivated: root.subtitleKey("Z") }@@ -385,7 +464,11 @@ Window {if (root.test.dialog !== undefined) dialogs.open(root.test.dialog)videoHost.syncRect()if (root.test.menu !== undefined) testMenuTimer.start()+ if (root.test.fullBar !== undefined) testFullTimer.start()}// The menu anchors on laid-out buttons, so it opens once the page has settled.+ // --full-bar shown|hidden: enter fullscreen with the control window held shown+ // or held hidden, for the present-timing comparison (G2.5).+ Timer { id: testFullTimer; interval: 1500; onTriggered: { root.toggleFullscreen(); if (root.test.fullBar === "hidden") root.fullControls = false } }Timer { id: testMenuTimer; interval: 600; onTriggered: proPage.openTestMenu(root.test.menu) }}diff --git a/qml/Veyra/MinimalPage.qml b/qml/Veyra/MinimalPage.qmlindex fde3b46a..dcee7ce7 100644--- a/qml/Veyra/MinimalPage.qml+++ b/qml/Veyra/MinimalPage.qml@@ -47,19 +47,17 @@ VPage {}}- // --- the control pill -------------------------------------------------- // .cine-bar: min(860px, 100% - 48px), 92px, radius 30, top = pictureHeight-46.- Rectangle {+ // --- the control pill (CineBar.qml) ------------------------------------+ // .cine-bar: min(860px, 100% - 48px), below the picture (see pictureHeight).+ CineBar {id: cineBaranchors.horizontalCenter: parent.horizontalCenterwidth: Math.min(860, root.width - 48)height: 92y: root.pictureHeight- radius: 30- color: Qt.rgba(22 / 255, 22 / 255, 26 / 255, 0.86)- border.width: 1- border.color: Qt.rgba(1, 1, 1, 0.1)visible: veyra.hasSource+ onRequestPage: p => root.requestPage(p)+ onRequestFullscreen: root.requestFullscreen()// barIn: opacity 0, translate 30px, scale .94 -> settledopacity: 0@@ -68,222 +66,11 @@ VPage {PauseAnimation { duration: Theme.d(120) }NumberAnimation { to: 1.0; duration: Theme.d(800); easing.bezierCurve: Theme.spring }}-- RowLayout {- anchors.fill: parent- anchors.leftMargin: 14- anchors.rightMargin: 18- spacing: 18-- // --- left: artwork + title (230px) ---------------------------- RowLayout {- Layout.preferredWidth: 230- Layout.fillHeight: true- spacing: 10- Rectangle {- implicitWidth: 46; implicitHeight: 46; radius: 12- color: Theme.videoBlack- border.width: 1- border.color: Theme.stroke- }- ColumnLayout {- Layout.fillWidth: true- Layout.alignment: Qt.AlignVCenter- spacing: 2- Text {- Layout.fillWidth: true- text: veyra.sourceName.length > 0 ? veyra.sourceName : "未打开"- color: Theme.t1- font.family: Theme.fontUi- font.pixelSize: 13- font.weight: Font.DemiBold; font.variableAxes: Theme.axesDemiBold- elide: Text.ElideRight- }- Text {- Layout.fillWidth: true- text: veyra.sourceSummary- color: Theme.t3- font.family: Theme.fontUi- font.pixelSize: 11- elide: Text.ElideRight- }- }- }-- // --- middle: transport + seek --------------------------------- ColumnLayout {- Layout.fillWidth: true- Layout.alignment: Qt.AlignVCenter- spacing: 4-- RowLayout {- Layout.alignment: Qt.AlignHCenter- spacing: 10-- // .cbtn: 32px round, muted, brightens on hover.- component CBtn: Item {- id: cbtn- property string glyph: ""- property string tip: ""- // The signal has to be declared: an inline component does not- // inherit the TapHandler's signal, so callers cannot assign- // onTapped without it.- signal tapped()- implicitWidth: 32- implicitHeight: 32- Rectangle {- anchors.fill: parent- radius: 16- color: cHover.hovered ? Qt.rgba(1, 1, 1, 0.08) : "transparent"- }- VIcon {- anchors.centerIn: parent- name: glyph- color: cHover.hovered ? "#FFFFFF" : Theme.t2- }- scale: cTap.pressed ? 0.86 : 1.0- Behavior on scale { NumberAnimation { duration: Theme.d(400); easing.bezierCurve: Theme.spring } }- HoverHandler { id: cHover; cursorShape: Qt.PointingHandCursor }- TapHandler { id: cTap; onTapped: cbtn.tapped() }- }-- CBtn { glyph: "cc"; onTapped: {} }- CBtn { glyph: "back10"; onTapped: veyra.seekBy(-10) }-- // .play: 40px white circle with the play/pause glyph.- Item {- implicitWidth: 40- implicitHeight: 40- Rectangle {- anchors.fill: parent- radius: 20- color: "#FFFFFF"- }- VIcon {- anchors.centerIn: parent- name: (veyra.running && !veyra.paused) ? "pausefill" : "playfill"- filled: true- color: "#0A0A0C"- }- scale: playTap.pressed ? 0.88 : (playHover.hovered ? 1.06 : 1.0)- Behavior on scale { NumberAnimation { duration: Theme.d(450); easing.bezierCurve: Theme.spring } }- HoverHandler { id: playHover; cursorShape: Qt.PointingHandCursor }- TapHandler { id: playTap; onTapped: veyra.togglePlayPause() }- }-- CBtn { glyph: "fwd10"; onTapped: veyra.seekBy(10) }- CBtn { glyph: "music"; onTapped: {} }- }-- // .seekrow: mono times either side of the rail.- RowLayout {- Layout.fillWidth: true- spacing: 10- Text {- text: veyra.positionText- color: Theme.t3- font.family: Theme.fontMono- font.pixelSize: 10- }- Item {- Layout.fillWidth: true- implicitHeight: 14- Rectangle {- id: rail- anchors.verticalCenter: parent.verticalCenter- width: parent.width- height: seekHover.hovered ? 6 : 3- radius: 9- color: Qt.rgba(1, 1, 1, 0.14)- Behavior on height { NumberAnimation { duration: Theme.d(300); easing.bezierCurve: Theme.spring } }- Rectangle {- width: parent.width * Math.max(0, Math.min(1, veyra.progress))- height: parent.height- radius: 9- color: "#FFFFFF"- }- }- HoverHandler { id: seekHover; cursorShape: Qt.PointingHandCursor }- TapHandler {- onTapped: point => {- const f = Math.max(0, Math.min(1, point.position.x / width))- veyra.seekTo(f * veyra.duration)- }- }- }- Text {- text: veyra.durationText- color: Theme.t3- font.family: Theme.fontMono- font.pixelSize: 10- }- }- }-- // --- right: preset, volume, fullscreen (230px) ---------------- RowLayout {- Layout.preferredWidth: 230- Layout.alignment: Qt.AlignVCenter | Qt.AlignRight- spacing: 6-- // .pill with a status dot: the dot reports the engine's state, and- // the label is the preset actually in use.- VPill {- key: ""- value: veyra.currentPresetName- onClicked: presetMenu.openAt(this, "up")- Rectangle {- width: 7; height: 7; radius: 3.5- color: veyra.failed ? Theme.err : veyra.captureRecovering ? Theme.warn : Theme.ok- }- }-- Item {- implicitWidth: 92- implicitHeight: 20- RowLayout {- anchors.fill: parent- spacing: 6- VIcon { name: "vol"; color: Theme.t2 }- VSlider {- Layout.fillWidth: true- from: 0; to: 1; value: veyra.volume- onMoved: veyra.volume = value- }- }- }-- Item {- implicitWidth: 32; implicitHeight: 32- VIcon {- anchors.centerIn: parent- name: "max"- color: Theme.t2- }- HoverHandler { cursorShape: Qt.PointingHandCursor }- TapHandler { onTapped: root.requestPage("pro") }- }- }- }}- // The preset menu: list presets and node presets in one menu, as designed.- // pages-a.js presetMenu: list presets, node presets, then the way to manage them.- VMenu {- id: presetMenu- title: "预设"- readonly property var mk: p => ({ label: p.name, note: p.note, checked: p.name === veyra.currentPresetName,- tag: p.nodeMode ? "节点" : "", preset: p.index })- items: [{ head: "列表预设" }].concat(veyra.presets.filter(p => !p.nodeMode).map(mk))- .concat([{ head: "节点预设" }]).concat(veyra.presets.filter(p => p.nodeMode).map(mk))- .concat([{ sep: true }, { label: "去专业模式管理预设…", icon: "sliders", act: "pro" }])- onPicked: (i, o) => {- if (o.act === "pro") root.requestPage("pro")- else veyra.applyPresetIndex(o.preset)- }- }// Report the film aspect upward so the window can snap to it.onPictureHeightChanged: if (veyra.sourceAspect > 0.2) root.requestAspect(veyra.sourceAspect)signal requestAspect(real aspect)+ signal requestFullscreen()}diff --git a/qml/Veyra/qmldir b/qml/Veyra/qmldirindex bb8f8988..542b7e44 100644--- a/qml/Veyra/qmldir+++ b/qml/Veyra/qmldir@@ -24,3 +24,5 @@ Main 1.0 Main.qmlVMenu 1.0 VMenu.qmlVPage 1.0 VPage.qmlVRise 1.0 VRise.qml+CineBar 1.0 CineBar.qml+FullscreenBar 1.0 FullscreenBar.qmldiff --git a/src/ui/QmlPlayerBridge.cpp b/src/ui/QmlPlayerBridge.cppindex ac13efe5..c2435fc5 100644--- a/src/ui/QmlPlayerBridge.cpp+++ b/src/ui/QmlPlayerBridge.cpp@@ -1,5 +1,8 @@#include "veyra/ui/QmlPlayerBridge.h"+#include <QRegion>+#include <QWindow>+#include <QDateTime>#include <QDir>#include <QFileDialog>@@ -1131,6 +1134,11 @@ void QmlPlayerBridge::logUi(const QString& channel, const QString& text) {const std::string c = channel.toStdString();veyra::log::info(c.c_str(), text.toStdString());}+void QmlPlayerBridge::setWindowMask(QObject* window, const QRectF& rect) {+ auto* w = qobject_cast<QWindow*>(window);+ if (!w) return;+ w->setMask(QRegion(rect.toAlignedRect()));+}void QmlPlayerBridge::holdOriginal(bool held) {impl_->engine.comparison(held ? 1 : 0, false);veyra::log::info("ui-compare", held ? "hold original on" : "hold original off");diff --git a/tools/qt_probe/fullbar-compare.ps1 b/tools/qt_probe/fullbar-compare.ps1new file mode 100644index 00000000..e3183fb5--- /dev/null+++ b/tools/qt_probe/fullbar-compare.ps1@@ -0,0 +1,40 @@+# G2.5: does the fullscreen control window cost the video anything? Runs the QML app in+# fullscreen with the control window held shown, then held hidden (--full-bar), and+# averages the engine's own [player-timing] P95 fields over the steady part of each+# run. PresentMon is not on this machine; this compares the engine's present timing.+param(+ [string]$App = 'E:\项目\Veyra\tests\ui-qml-migration-20260925\qml-app',+ [string]$Clip = 'C:\Users\123\Desktop\Veyra DLSS Video Player\loop\local\fixed_clips\test_av_1080p.mp4',+ [string]$Out = 'E:\项目\Veyra\logs\ui-qml-migration-20260925\goal\g2.5\compare',+ [int]$Seconds = 20,+ [int]$Rounds = 2+)+New-Item -ItemType Directory -Force $Out | Out-Null+$fields = 'graphSubmitP95Ms','gpuReadyP95Ms','presentP95Ms','returnAbsP95Ms'+$rows = @()+for ($round = 1; $round -le $Rounds; $round++) {+ foreach ($mode in 'shown','hidden') {+ $log = Join-Path $Out "$mode-$round.log"+ $env:VEYRA_LOG_FILE = $log+ $p = Start-Process -FilePath (Join-Path $App 'veyra_qml_ui.exe') -ArgumentList @('--page','min','--full-bar',$mode,('"' + $Clip + '"')) -PassThru+ Start-Sleep -Seconds $Seconds+ Stop-Process -Id $p.Id -Force -ErrorAction SilentlyContinue+ Start-Sleep -Milliseconds 800+ $all = Get-Content -LiteralPath $log -Encoding utf8+ # Steady state: timing lines after fullscreen was entered, first two skipped.+ $at = ($all | Select-String -Pattern 'ui-fullscreen\] enabled=true' | Select-Object -First 1).LineNumber+ $lines = @($all | Select-Object -Skip ([int]$at) | Where-Object { $_ -match '\[player-timing\]' } | Select-Object -Skip 2)+ $row = [ordered]@{ mode = $mode; round = $round; samples = $lines.Count+ barVisible = (@($all | Select-String 'control window visible=true').Count -gt 0) }+ foreach ($f in $fields) {+ $v = @($lines | ForEach-Object { if ($_ -match "$f=([0-9.]+)") { [double]$Matches[1] } })+ $row[$f] = if ($v.Count) { [math]::Round(($v | Measure-Object -Average).Average, 3) } else { $null }+ }+ $d = @($lines | ForEach-Object { if ($_ -match 'displaySubmits=([0-9]+)') { [double]$Matches[1] } })+ $row['displaySubmitsPerLine'] = if ($d.Count -gt 1) { [math]::Round(($d[-1] - $d[0]) / ($d.Count - 1), 1) } else { $null }+ $rows += [pscustomobject]$row+ }+}+Remove-Item Env:VEYRA_LOG_FILE+$rows | Format-Table -AutoSize | Out-String -Width 200+$rows | ConvertTo-Json | Set-Content -LiteralPath (Join-Path $Out 'summary.json') -Encoding utf8