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): G3.1 home page glow, real card subtitles, recent row; load saved UI session
Veyra Goal Agentd3bad56be581
diff --git a/apps/veyra-qml/main.cpp b/apps/veyra-qml/main.cppindex 1e558f2a..71864dc9 100644--- a/apps/veyra-qml/main.cpp+++ b/apps/veyra-qml/main.cpp@@ -175,8 +175,20 @@ int main(int argc, char** argv) {g_video = createVideoWindow();// The data directory mirrors what the Win32 build used, so presets and the- // session file carry over instead of starting empty.- ui::QmlPlayerBridge bridge(controller);+ // session file carry over instead of starting empty. `--data-dir <path>` (a+ // test switch) points it somewhere else, so a review run can show seeded+ // history - recent files, the last capture session - without reading or+ // rewriting the user's own.+ std::filesystem::path dataDirectory;+ {+ const QStringList early = QCoreApplication::arguments();+ const auto at = early.indexOf(QStringLiteral("--data-dir"));+ if (at > 0 && at + 1 < early.size()) {+ dataDirectory = std::filesystem::path(early.at(at + 1).toStdWString());+ veyra::log::info("app", "test data directory " + early.at(at + 1).toStdString());+ }+ }+ ui::QmlPlayerBridge bridge(controller, dataDirectory);bridge.attachVideoWindow(reinterpret_cast<qulonglong>(g_video));// Qt reports QML failures through its own message handler. Routing them to@@ -214,6 +226,7 @@ int main(int argc, char** argv) {// --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+ // --data-dir <path> presets and session history from that folder (read before the bridge exists)// --motion-probe <name> dock | page | switch | seg | menu: start that motion, log its value per frameconst QStringList args = QCoreApplication::arguments();QString openPath;@@ -241,6 +254,8 @@ int main(int argc, char** argv) {testOptions.insert(QStringLiteral("fullBar"), args.at(++i));} else if (a == QLatin1String("--full-debug")) {testOptions.insert(QStringLiteral("fullDebug"), true);+ } else if (a == QLatin1String("--data-dir") && hasValue) {+ ++i; // handled before the bridge was created} 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 736dc832..05f99974 100644--- a/docs/UI_FULL_GOAL_PLAN_2026-09-26.md+++ b/docs/UI_FULL_GOAL_PLAN_2026-09-26.md@@ -12,7 +12,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.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 四主屏 | 未开始 | | |+| G3 四主屏 | 进行中 | checkpoint/ui-mig-g3.1 | G3.1 首页(标志呼吸光晕、卡片真实副标题、继续上次/最近、偏好读回修复、`--data-dir` 测试开关;悬停实拍未执行:显示器休眠);下一步 G3.2 极简 || B1 小项 + 桥接补齐 | 未开始 | | || B2 导出补齐(S2.5) | 未开始 | | || B3 独立调色 pass(S2.2) | 未开始 | | |diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex 99dbebf7..15d04acf 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -6681,3 +6681,11 @@ release. 5090 live acceptance, 15-second hitch and user flicker remain unresolve- 日志实测(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)期间的全部截图/目视;锁定按钮与条内预设菜单的实际点击;多显示器下的条位置。+- G3.1 首页(`checkpoint/ui-mig-g3.1`,证据 `goal/g3.1/`):+ - 标志 M18:MultiEffect 白色外发光 + breathe 4.5s(20px/.35 ↔ 30px/.55,scale 1.02);图层四周留 40px 透明边(直接挂在图片上时光晕被裁到图片边界),负边距保持布局不变。logo-crop.png 与设计稿逐像素并排。+ - 片源卡:外层 slot 交给 RowLayout 定位、入场 rise 挂 slot,卡片自身 y -4 悬停上浮(之前 y 被布局覆盖,悬停不会动);副标题用真实数据:采集卡 = 上次采集设备,PS5 = 已保存主机,无记录时通用文案。+ - 继续上次按钮加 play 图标;最近行改为 692 宽左对齐 Flow,film/image 图标,已删除文件变暗、不可点并提示“文件已不存在”。+ - 修正:`ui-session.v1`(最近文件、上次采集、减弱动效、默认页)每次改动都写盘却从未读回——桥接构造时调用 `loadPreferences()`,损坏则记日志沿用默认。+ - 新测试开关 `--data-dir <path>`(在桥接创建前读取),审查时用 `tests/ui-qml-migration-20260925/g3-home-data`(种子历史)与 `g3-empty-data`(首次运行),不读写用户自己的数据。+ - 截图:cmp-f-home.png(有历史,对齐设计稿)、qml-empty.png(首次运行无继续/最近行)。PrintWindow 截图在显示器休眠时仍正常。+ - 未执行:卡片悬停上浮与按下缩放的实拍——显示器休眠期间 Qt Quick 不投递悬停(hover-shot 前后逐像素无差,与 G2.4 dock 同一现象);点击最近条目打开文件。diff --git a/qml/Veyra/HomePage.qml b/qml/Veyra/HomePage.qmlindex fb9e3f42..9f137e62 100644--- a/qml/Veyra/HomePage.qml+++ b/qml/Veyra/HomePage.qml@@ -6,6 +6,7 @@import QtQuickimport QtQuick.Controlsimport QtQuick.Layouts+import QtQuick.EffectsVPage {id: root@@ -15,19 +16,43 @@ VPage {anchors.centerIn: parentspacing: 24- // .home .mark: 128px wide, with a slow "breathe" glow.- Image {+ // .home .mark: 128px wide, drop-shadow(0 0 20px rgba(255,255,255,.35)) and the+ // 4.5s "breathe" loop: at 50% the glow is 30px at .55 and the mark scales 1.02.+ // MultiEffect blur is 0..1 of blurMax (32px): 20px = .625, 30px = .94.+ // The layer is padded 40px on every side so the glow has room (a layer on the+ // bare image clips the shadow to the image's own bounds). Negative margins+ // keep the layout the same as a plain 128px image.+ Item {id: markLayout.alignment: Qt.AlignHCenter- source: "logo.png"- sourceSize.width: 128- fillMode: Image.PreserveAspectFit- opacity: 0.9- SequentialAnimation on scale {+ Layout.topMargin: -40+ Layout.bottomMargin: -40+ implicitWidth: logoImg.implicitWidth + 80+ implicitHeight: logoImg.implicitHeight + 80+ property real breath: 0+ scale: 1 + 0.02 * breath+ SequentialAnimation on breath {running: !Theme.reducedloops: Animation.Infinite- NumberAnimation { to: 1.02; duration: Theme.d(2250); easing.type: Easing.InOutSine }- NumberAnimation { to: 1.0; duration: Theme.d(2250); easing.type: Easing.InOutSine }+ NumberAnimation { to: 1; duration: Theme.d(2250); easing.type: Easing.InOutSine }+ NumberAnimation { to: 0; duration: Theme.d(2250); easing.type: Easing.InOutSine }+ }+ Image {+ id: logoImg+ anchors.centerIn: parent+ source: "logo.png"+ sourceSize.width: 128+ fillMode: Image.PreserveAspectFit+ }+ layer.enabled: true+ layer.effect: MultiEffect {+ shadowEnabled: true+ shadowColor: "#FFFFFF"+ shadowHorizontalOffset: 0+ shadowVerticalOffset: 0+ blurMax: 64+ shadowBlur: 0.625 + 0.3125 * mark.breath+ shadowOpacity: 0.35 + 0.2 * mark.breath}}@@ -58,20 +83,32 @@ VPage {Layout.alignment: Qt.AlignHCenterspacing: 12Repeater {+ // Subtitles name what is really there: the device of the last capture+ // session and the saved PS5 host; generic wording when there is none.model: [{ glyph: "folder", title: "打开视频", sub: "MP4 · MKV · 图片", act: "file" },- { glyph: "video", title: "采集卡", sub: "HDMI 采集设备", act: "capture" },- { glyph: "gamepad", title: "PS5 串流", sub: "局域网串流", act: "ps5" },+ { glyph: "video", title: "采集卡",+ sub: veyra.hasCaptureSession ? veyra.captureSessionSummary.split(" · ")[0] : "HDMI 采集设备", act: "capture" },+ { glyph: "gamepad", title: "PS5 串流",+ sub: veyra.remotePlayHost.length > 0 ? "已保存主机 " + veyra.remotePlayHost : "局域网串流", act: "ps5" },{ glyph: "monitor", title: "屏幕捕获", sub: "窗口或显示器", act: "screen" }]- delegate: Rectangle {- id: srcCard+ // The layout owns the slot's position, so the card inside it is free to+ // move its own y for the hover lift (a y set on a layout child is+ // overwritten); the entrance rise goes on the slot.+ delegate: Item {+ id: slotrequired property var modelDatarequired property int index- VRise { page: root; target: srcCard; d: 2 + srcCard.index }- // .srccard: 164x124, radius 14, content pinned top and bottom.implicitWidth: 164implicitHeight: 124+ VRise { page: root; target: slot; d: 2 + slot.index }+ Rectangle {+ id: srcCard+ readonly property var modelData: slot.modelData+ // .srccard: 164x124, radius 14, content pinned top and bottom.+ width: 164+ height: 124radius: Theme.rCardcolor: cardHover.hovered ? Theme.card2 : Theme.cardborder.width: 1@@ -127,6 +164,7 @@ VPage {}}}+ }}}}@@ -179,44 +217,65 @@ VPage {}VButton {text: "开始"+ iconName: "play"primary: trueonClicked: veyra.resumeCaptureSession()}}}- // .recent: a row of chips, present only when there are recent files.- RowLayout {+ // .recent: 692 wide, left-aligned, wrapping; "最近" in --v-t3 then 28px chips+ // with a film/image icon. Present only when there are recent files; a chip+ // whose file is gone is dimmed and does nothing (clicking it cannot open it).+ Flow {id: recentLayout.alignment: Qt.AlignHCenter+ Layout.preferredWidth: 692visible: veyra.recentFiles.length > 0spacing: 8Text {+ height: 28+ verticalAlignment: Text.AlignVCentertext: "最近"color: Theme.t3font.family: Theme.fontUi- font.pixelSize: Theme.fsBody+ font.pixelSize: 12}Repeater {model: veyra.recentFilesdelegate: Rectangle {+ id: chiprequired property var modelData- implicitWidth: chipText.implicitWidth + 22- implicitHeight: 28+ readonly property bool isImage: /\.(png|jpe?g|bmp|webp|tiff?)$/i.test(modelData.path)+ width: chipRow.implicitWidth + 22+ height: 28radius: 99- color: chipHover.hovered ? Qt.rgba(1, 1, 1, 0.08) : Qt.rgba(1, 1, 1, 0.04)+ opacity: modelData.exists ? 1 : 0.45+ color: chipHover.hovered && modelData.exists ? Qt.rgba(1, 1, 1, 0.08) : Qt.rgba(1, 1, 1, 0.04)border.width: 1border.color: Theme.stroke- Text {- id: chipText+ Row {+ id: chipRowanchors.centerIn: parent- text: modelData.label- color: chipHover.hovered ? Theme.t1 : Theme.t2- font.family: Theme.fontUi- font.pixelSize: 12- elide: Text.ElideMiddle+ spacing: 7+ VIcon {+ anchors.verticalCenter: parent.verticalCenter+ name: chip.isImage ? "image" : "film"+ size: 14+ color: chipText.color+ }+ Text {+ id: chipText+ anchors.verticalCenter: parent.verticalCenter+ text: modelData.label+ color: chipHover.hovered && modelData.exists ? Theme.t1 : Theme.t2+ font.family: Theme.fontUi+ font.pixelSize: 12+ }}- HoverHandler { id: chipHover; cursorShape: Qt.PointingHandCursor }+ ToolTip.visible: chipHover.hovered && !modelData.exists+ ToolTip.text: "文件已不存在"+ HoverHandler { id: chipHover; cursorShape: modelData.exists ? Qt.PointingHandCursor : Qt.ArrowCursor }TapHandler { onTapped: if (modelData.exists) veyra.openPath(modelData.path) }}}diff --git a/src/ui/QmlPlayerBridge.cpp b/src/ui/QmlPlayerBridge.cppindex c2435fc5..1b8b546f 100644--- a/src/ui/QmlPlayerBridge.cpp+++ b/src/ui/QmlPlayerBridge.cpp@@ -122,6 +122,12 @@ QmlPlayerBridge::QmlPlayerBridge(engine::EngineController& engine, std::filesystQObject* parent): QObject(parent), impl_(std::make_unique<Impl>(engine, std::move(dataDirectory))) {impl_->facade.importLegacyStores();+ // Recent files, the last capture session and the shell preferences are saved+ // on every change; without this load they were written but never read back,+ // so every restart came up with an empty history. A damaged file is logged+ // and the defaults stand.+ if (!impl_->facade.loadPreferences())+ veyra::log::error("ui", "preferences not loaded: " + utf8Of(impl_->facade.error()).toStdString());// 60 Hz ceiling, and it does nothing at all when the snapshot is unchanged.impl_->timer = new QTimer(this);connect(impl_->timer, &QTimer::timeout, this, [this] {