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 dock press/hover and tooltip, dot pulse easing, slider knob shadow and drag fix, accordion inner motion and chevron icon

Veyra Goal Agent7200d0f0a62b
diff --git a/apps/veyra-qml/main.cpp b/apps/veyra-qml/main.cpp
index d34c7d98..1b203fb2 100644
--- a/apps/veyra-qml/main.cpp
+++ b/apps/veyra-qml/main.cpp
@@ -198,6 +198,7 @@ int main(int argc, char** argv) {
// --aspect <ratio> cinema aspect, overriding the source's own
// --menu <source|preset> professional-page popover menu open
// --dock-pinned dock open and held open
+ // --tip <page> the dock button's tooltip for that page shown (review)
// --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)
@@ -219,6 +220,8 @@ int main(int argc, char** argv) {
testOptions.insert(QStringLiteral("menu"), args.at(++i));
} else if (a == QLatin1String("--aspect") && hasValue) {
testOptions.insert(QStringLiteral("aspect"), args.at(++i).toDouble());
+ } else if (a == QLatin1String("--tip") && hasValue) {
+ testOptions.insert(QStringLiteral("tip"), args.at(++i));
} else if (a == QLatin1String("--dock-pinned")) {
testOptions.insert(QStringLiteral("dockPinned"), true);
} else if (a == QLatin1String("--size") && hasValue) {
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index b70141df..fb6e638a 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -6623,3 +6623,15 @@ release. 5090 live acceptance, 15-second hitch and user flicker remain unresolve
- 偏差:原生视频画面无法被 QML 遮罩压暗,对话框旁的画面不变暗。
- 探针 dialog(设计 capture 对话框):设计峰值 1.0041,QML 峰值 1.0041,chart-dialog.png 曲线重合。
- f-cap/f-aud 截图中对话框的内容与尺寸差距(设计有预览、格式行、音轨列表等)属 G3。
+ - 其余组件动效(证据 `goal/g1.5-comp/`):
+ - M3 logo:背景 .2s,按下 .9 用 .4s spring。原写法按下时直接把 scale 赋成 .9,永不复位,已修正。
+ - M4 dock 按钮:按下 .86 用 .45s spring;悬停图标变白。
+ - M5 提示气泡:新增,位于按钮下 38px,opacity .15s,scale .85→1 用 .3s spring,原点在顶部中心。气泡设为 videoCover。新增 `--tip <page>` 审查开关和 x-tip 审查态;zoom-tip.png 显示气泡在导出按钮下方,压在视频之上。
+ - M10 警告点:两半段改为 ease-in-out。
+ - M11 开关:已符合设计(按下且选中时圆钮 x=13,等于设计的 3+10),未改。
+ - M13 滑块:圆钮加阴影(0 2px 6px rgba(0,0,0,.5)),zoom-knob.png 可见。
+ - 顺带修正拖动 bug:activeTranslation 是相对按下点的累计值,旧代码却加在当前 x 上,导致圆钮越拖越快。改为以按下时的位置为起点。
+ - M28 折叠内容:opacity .2s,y -6→0 用 .45s spring,打开延迟 60ms;边框颜色 .25s。
+ - M29 箭头:改用 Lucide right 图标。
+ - M28/M29 只看了静态截图(zoom-acc.png),动效曲线未执行探针。
+ - 偏差:提示气泡字号 11.5px 在 QML 里只能是整数 pixelSize,暂用 11,G3 统一处理小数字号。f-aud 对话框的白色滚动条属 G3。
diff --git a/qml/Veyra/Main.qml b/qml/Veyra/Main.qml
index fc25251b..73a77020 100644
--- a/qml/Veyra/Main.qml
+++ b/qml/Veyra/Main.qml
@@ -177,6 +177,7 @@ Window {
anchors.horizontalCenter: parent.horizontalCenter
currentPage: root.page
pinned: root.test.dockPinned === true
+ forcedTip: root.test.tip !== undefined ? root.test.tip : ""
opened: pinned
onRequestPage: p => root.page = p
}
diff --git a/qml/Veyra/TopDock.qml b/qml/Veyra/TopDock.qml
index f3931058..68edabb9 100644
--- a/qml/Veyra/TopDock.qml
+++ b/qml/Veyra/TopDock.qml
@@ -24,6 +24,8 @@ Item {
property bool opened: false
// Mirrors st.dockPinned in the design: pinned stays open regardless of hover.
property bool pinned: false
+ // Review: holds one button's tooltip shown (--tip).
+ property string forcedTip: ""
// The pill's top edge, read by the motion probe (G0.5).
readonly property real barY: bar.y
@@ -97,13 +99,17 @@ Item {
spacing: 2
// .dock .logo: 40x30, returns to the empty state.
+ // M3: background .2s, :active scale .9 over .4s --spring.
Item {
implicitWidth: 40
implicitHeight: 30
+ scale: logoTap.pressed ? 0.9 : 1
+ Behavior on scale { NumberAnimation { duration: Theme.d(400); easing.bezierCurve: Theme.spring } }
Rectangle {
anchors.fill: parent
radius: height / 2
- color: logoHover.hovered ? "#1A1A1F" : "transparent"
+ color: logoHover.hovered ? "#1A1A1F" : Qt.rgba(0.102, 0.102, 0.122, 0)
+ Behavior on color { ColorAnimation { duration: Theme.d(200) } }
}
Image {
anchors.centerIn: parent
@@ -113,8 +119,8 @@ Item {
}
HoverHandler { id: logoHover; cursorShape: Qt.PointingHandCursor }
TapHandler {
+ id: logoTap
onTapped: dockRoot.requestPage("home")
- onPressedChanged: if (pressed) scale = 0.9
}
}
@@ -147,19 +153,54 @@ Item {
Repeater {
model: dockRoot.items
delegate: Item {
+ id: btn
required property var modelData
width: 32
height: 30
- // .dock-btn: color rgba(255,255,255,.45), selected #fff.
+ // M4: .dock-btn:active scale .86 over .45s --spring.
+ scale: btnTap.pressed ? 0.86 : 1
+ Behavior on scale { NumberAnimation { duration: Theme.d(450); easing.bezierCurve: Theme.spring } }
+ // .dock-btn: color rgba(255,255,255,.45), hover or selected #fff.
VIcon {
anchors.centerIn: parent
- name: modelData.icon
+ name: btn.modelData.icon
color: "#FFFFFF"
- opacity: dockRoot.currentPage === modelData.id ? 1.0 : 0.45
+ opacity: dockRoot.currentPage === btn.modelData.id || tip.on ? 1.0 : 0.45
Behavior on opacity { NumberAnimation { duration: Theme.d(200) } }
}
- HoverHandler { cursorShape: Qt.PointingHandCursor }
- TapHandler { onTapped: dockRoot.requestPage(modelData.id) }
+ // M5: .tip 38px below, opacity .15s, scale .85 -> 1 over .3s
+ // --spring from its top centre.
+ Rectangle {
+ id: tip
+ readonly property bool on: btnHover.hovered || dockRoot.forcedTip === btn.modelData.id
+ // Below the dock it sits over the video: cut out of it.
+ objectName: "videoCover"
+ property real coverRadius: 7
+ x: (btn.width - width) / 2
+ y: 38
+ width: tipText.implicitWidth + 16 + 2
+ height: tipText.implicitHeight + 8 + 2
+ radius: 7
+ color: Theme.popover
+ border.width: 1
+ border.color: Theme.stroke2
+ opacity: on ? 1 : 0
+ visible: opacity > 0
+ scale: on ? 1 : 0.85
+ transformOrigin: Item.Top
+ Behavior on opacity { NumberAnimation { duration: Theme.d(150) } }
+ Behavior on scale { NumberAnimation { duration: Theme.d(300); easing.bezierCurve: Theme.spring } }
+ Text {
+ id: tipText
+ anchors.centerIn: parent
+ text: btn.modelData.tip
+ color: "#FFFFFF"
+ font.family: Theme.fontUi
+ font.pixelSize: 11 // 11.5px; pixelSize is an int (fractional sizes: G3)
+ }
+ }
+ HoverHandler { id: btnHover; cursorShape: Qt.PointingHandCursor }
+ TapHandler { id: btnTap; onTapped: dockRoot.requestPage(btn.modelData.id) }
}
}
}
diff --git a/qml/Veyra/VAccordion.qml b/qml/Veyra/VAccordion.qml
index 769a5468..7a55a6c0 100644
--- a/qml/Veyra/VAccordion.qml
+++ b/qml/Veyra/VAccordion.qml
@@ -34,6 +34,7 @@ Rectangle {
color: Theme.card2
border.width: 1
border.color: open ? Theme.stroke2 : Theme.stroke
+ Behavior on border.color { ColorAnimation { duration: Theme.d(250) } }
Behavior on implicitHeight { NumberAnimation { duration: Theme.d(500); easing.bezierCurve: Theme.springSoft } }
clip: true
@@ -98,10 +99,9 @@ Rectangle {
}
// .chev rotates 90 degrees when the card is open.
- Text {
- text: "›"
+ VIcon {
+ name: "right"
color: Theme.t3
- font.pixelSize: 16
rotation: acc.open ? 90 : 0
Behavior on rotation { NumberAnimation { duration: Theme.d(450); easing.bezierCurve: Theme.spring } }
}
@@ -119,7 +119,18 @@ Rectangle {
Layout.rightMargin: 12
Layout.bottomMargin: 10
spacing: 2
- visible: acc.open || implicitHeight > 0
+ visible: acc.open || acc.height > acc.headerHeight
+ // .acc-b .inner: opacity .2s and translateY(-6px) -> 0 over .45s --spring,
+ // delayed .06s when opening; closing starts at once.
+ property real dy: acc.open ? 0 : -6
+ opacity: acc.open ? 1 : 0
+ transform: Translate { y: body.dy }
+ Behavior on opacity { SequentialAnimation {
+ PauseAnimation { duration: acc.open ? Theme.d(60) : 0 }
+ NumberAnimation { duration: Theme.d(200) } } }
+ Behavior on dy { SequentialAnimation {
+ PauseAnimation { duration: acc.open ? Theme.d(60) : 0 }
+ NumberAnimation { duration: Theme.d(450); easing.bezierCurve: Theme.spring } } }
Repeater {
model: acc.groups
diff --git a/qml/Veyra/VDot.qml b/qml/Veyra/VDot.qml
index 52937ea6..79ad8881 100644
--- a/qml/Veyra/VDot.qml
+++ b/qml/Veyra/VDot.qml
@@ -19,7 +19,8 @@ Rectangle {
SequentialAnimation on opacity {
running: warn && !Theme.reduced
loops: Animation.Infinite
- NumberAnimation { to: 0.35; duration: Theme.d(600) }
- NumberAnimation { to: 1.0; duration: Theme.d(600) }
+ // @keyframes pulse { 50% { opacity: .35 } } with ease-in-out per half.
+ NumberAnimation { to: 0.35; duration: Theme.d(600); easing.bezierCurve: [0.42, 0, 0.58, 1, 1, 1] }
+ NumberAnimation { to: 1.0; duration: Theme.d(600); easing.bezierCurve: [0.42, 0, 0.58, 1, 1, 1] }
}
}
diff --git a/qml/Veyra/VSlider.qml b/qml/Veyra/VSlider.qml
index 7ebea6b2..4c2ce66e 100644
--- a/qml/Veyra/VSlider.qml
+++ b/qml/Veyra/VSlider.qml
@@ -1,4 +1,5 @@
import QtQuick
+import QtQuick.Effects
import QtQuick.Controls
import QtQuick.Layouts
Item {
@@ -41,17 +42,30 @@ Item {
x: track.width * slider.frac - width / 2
scale: drag.active || hover.hovered ? 1.25 : 1.0
Behavior on scale { NumberAnimation { duration: Theme.d(350); easing.bezierCurve: Theme.spring } }
+ // box-shadow: 0 2px 6px rgba(0,0,0,.5)
+ layer.enabled: true
+ layer.effect: MultiEffect {
+ shadowEnabled: true
+ shadowColor: Qt.rgba(0, 0, 0, 0.5)
+ shadowVerticalOffset: 2
+ shadowBlur: 0.5
+ blurMax: 12
+ autoPaddingEnabled: true
+ }
}
HoverHandler { id: hover; cursorShape: Qt.PointingHandCursor; enabled: slider.enabledControl }
DragHandler {
id: drag
target: null
enabled: slider.enabledControl
+ // activeTranslation is measured from the press, so it adds to where the knob
+ // was then, not to where it is now.
+ property real startX: 0
onActiveTranslationChanged: {
- const x = Math.max(0, Math.min(track.width, knob.x + activeTranslation.x + knob.width / 2))
+ const x = Math.max(0, Math.min(track.width, startX + activeTranslation.x))
slider.value = slider.from + (x / track.width) * (slider.to - slider.from)
}
- onActiveChanged: if (!active) slider.moved(slider.value)
+ onActiveChanged: { if (active) startX = track.width * slider.frac; else slider.moved(slider.value) }
}
TapHandler {
enabled: slider.enabledControl
diff --git a/tools/qt_probe/shoot-all.ps1 b/tools/qt_probe/shoot-all.ps1
index f3f68640..28dccb9c 100644
--- a/tools/qt_probe/shoot-all.ps1
+++ b/tools/qt_probe/shoot-all.ps1
@@ -35,6 +35,7 @@ $states = [ordered]@{
# Not design frames: states the frames only show in passing (menus), shot for review.
'x-menu-src' = @('pro', '--menu source')
'x-menu-preset' = @('pro', '--menu preset')
+ 'x-tip' = @('pro', '--dock-pinned --tip exp')
}
$capture = Join-Path $PSScriptRoot 'capture-window.ps1'
foreach ($id in $states.Keys) {