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 M12 seg indicator slides with the spring, seg motion probe

Veyra Goal Agent4a1fe2eb6397
diff --git a/prototypes/ui-redesign-2026-09-25/shotpage.js b/prototypes/ui-redesign-2026-09-25/shotpage.js
index 920733c1..cd5adb5f 100644
--- a/prototypes/ui-redesign-2026-09-25/shotpage.js
+++ b/prototypes/ui-redesign-2026-09-25/shotpage.js
@@ -93,6 +93,14 @@
} else if (probe === 'page') {
start = () => app.go('pro');
read = () => { const e = app.pages.pro.el.querySelector('[data-in]'); const cs = getComputedStyle(e); return cs.opacity + ',' + ty(e); };
+ } else if (probe === 'seg') {
+ // The first visible seg; move to its last button. Progress 0..1 of the indicator's x.
+ const sg = [...root.querySelectorAll('.seg')].find(x => x.offsetParent !== null);
+ const ind = sg.querySelector('.seg-ind'), btns = sg.querySelectorAll('button');
+ const tx = () => { const m = getComputedStyle(ind).transform; return m === 'none' ? 0 : new DOMMatrix(m).m41; };
+ const x0 = tx(), x1 = btns[btns.length - 1].offsetLeft;
+ start = () => btns[btns.length - 1].click();
+ read = () => ((tx() - x0) / (x1 - x0)).toFixed(4);
} else return;
start();
// The page switch shows the new page 150 ms later; wait for its animations to exist.
diff --git a/qml/Veyra/Main.qml b/qml/Veyra/Main.qml
index ea2ca3c1..2f87cc35 100644
--- a/qml/Veyra/Main.qml
+++ b/qml/Veyra/Main.qml
@@ -248,6 +248,15 @@ Window {
x: 40; y: 120; z: 100
sourceComponent: VSwitch {}
}
+ Loader {
+ id: probeSeg
+ active: root.test.motionProbe === "seg"
+ x: 40; y: 160; z: 100
+ sourceComponent: VSeg {
+ options: [{ id: "a", label: "自动" }, { id: "b", label: "有限 / Limited" }, { id: "c", label: "完整 / Full" }]
+ current: "a"
+ }
+ }
Timer {
running: root.test.motionProbe !== undefined
interval: 800
@@ -256,6 +265,7 @@ Window {
if (name === "dock") dock.opened = true
else if (name === "page") root.page = "pro"
else if (name === "switch") probeSwitch.item.checked = true
+ 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
}
@@ -263,6 +273,8 @@ Window {
FrameAnimation {
id: probe
property real t0: 0
+ property real x0: 0
+ property real x1: 1
running: false
onTriggered: {
const ms = Date.now() - t0
@@ -270,7 +282,9 @@ Window {
let v
if (name === "dock") v = dock.barY
else if (name === "page") v = proPage.opacity + "," + proPage.y
- else v = probeSwitch.item.children[0].x - 3
+ 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
console.log("motion-probe," + name + "," + ms + "," + v)
if (ms > 1000) running = false
}
diff --git a/qml/Veyra/VSeg.qml b/qml/Veyra/VSeg.qml
index 289de086..06a5019e 100644
--- a/qml/Veyra/VSeg.qml
+++ b/qml/Veyra/VSeg.qml
@@ -1,6 +1,7 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
+import QtQuick.Effects
Rectangle {
id: seg
property var options: [] // [{ id, label }]
@@ -14,28 +15,72 @@ Rectangle {
border.width: 1
border.color: Theme.stroke
+ readonly property int currentIndex: {
+ for (var i = 0; i < options.length; ++i)
+ if (options[i].id === current) return i
+ return -1
+ }
+ // itemAt() is not a notifying call; reading count re-runs this once the Repeater
+ // has built its buttons (otherwise it stays null from the first evaluation).
+ readonly property Item currentItem: (segRepeater.count > 0 && currentIndex >= 0) ? segRepeater.itemAt(currentIndex) : null
+
+ // Read by the motion probe (G0.5): where the indicator is, and where it is going.
+ readonly property real indicatorX: indicator.x
+ readonly property real targetX: currentItem ? segRow.x + currentItem.x : 3
+
+ // .seg-ind: one indicator slides under the chosen button (transform and width,
+ // .5s --spring), instead of each button lighting its own background.
+ Rectangle {
+ id: indicator
+ visible: seg.currentItem !== null
+ x: seg.currentItem ? segRow.x + seg.currentItem.x : 3
+ y: 3
+ width: seg.currentItem ? seg.currentItem.width : 0
+ height: 24
+ radius: 7
+ color: Theme.card3
+ Behavior on x { NumberAnimation { duration: Theme.d(500); easing.bezierCurve: Theme.spring } }
+ Behavior on width { NumberAnimation { duration: Theme.d(500); easing.bezierCurve: Theme.spring } }
+ // box-shadow 0 1px 0 rgba(255,255,255,.06) inset: the lit top edge.
+ Rectangle {
+ anchors.left: parent.left; anchors.right: parent.right
+ anchors.leftMargin: 4; anchors.rightMargin: 4
+ height: 1
+ color: Qt.rgba(1, 1, 1, 0.06)
+ }
+ }
+
+ // box-shadow 0 4px 10px rgba(0,0,0,.35): card3 alone is the same grey as the seg
+ // background, so the shadow is what makes the indicator visible (G1.5).
+ MultiEffect {
+ source: indicator
+ anchors.fill: indicator
+ visible: indicator.visible
+ shadowEnabled: true
+ shadowColor: Qt.rgba(0, 0, 0, 0.35)
+ shadowVerticalOffset: 4
+ shadowHorizontalOffset: 0
+ blurMax: 16
+ shadowBlur: 0.625
+ }
+
RowLayout {
id: segRow
anchors.centerIn: parent
spacing: 0
Repeater {
+ id: segRepeater
model: seg.options
delegate: Item {
required property var modelData
implicitWidth: segLabel.implicitWidth + 20
implicitHeight: 24
- Rectangle {
- anchors.fill: parent
- anchors.margins: 0
- radius: 7
- color: seg.current === modelData.id ? Theme.card3 : "transparent"
- Behavior on color { ColorAnimation { duration: Theme.d(Theme.durFast) } }
- }
Text {
id: segLabel
anchors.centerIn: parent
text: modelData.label
color: seg.current === modelData.id ? Theme.t1 : Theme.t2
+ Behavior on color { ColorAnimation { duration: Theme.d(200) } }
font.family: Theme.fontUi
font.pixelSize: Theme.fsBody
font.weight: Font.Medium
diff --git a/tools/qt_probe/motion-sample.ps1 b/tools/qt_probe/motion-sample.ps1
index 55bc93f8..0444484e 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' }
+$designFrame = @{ dock = 'f-home'; switch = 'f-cap'; page = 'f-home'; seg = 'f-cap' }
function Read-Curve([string[]]$lines) {
# "t,value" or "t,opacity,y": the curve is the last column.