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++

fix(ui): sponsor page puts Ko-fi first, the codes for mainland China

Veyra Goal Agentdcd95b640177
diff --git a/docs/SPONSOR_PAGE_2026-10-19.md b/docs/SPONSOR_PAGE_2026-10-19.md
index 208c9ea0..fda8c81a 100644
--- a/docs/SPONSOR_PAGE_2026-10-19.md
+++ b/docs/SPONSOR_PAGE_2026-10-19.md
@@ -12,17 +12,23 @@
|---|---|
| `qml/Veyra/HomePage.qml` | 标题“Veyra NR Video”;小字“本软件开源免费,如果对你有帮助,你可以 → ☕ 请作者喝杯咖啡”,后半句强调色,整行可点(悬停下划线),发出 `requestSponsor` |
| `qml/Veyra/Main.qml` | `showSponsor()`:设置页切到 `sponsor` 分区再进入设置 |
-| `qml/Veyra/SettingsPage.qml` | 左栏最后新增“赞助作者”(粉色心形图标,便于发现);“关于”里原“交流群与赞助”按钮从未接通(只提示“尚未接入”),拆成“赞助作者 → 前往”(跳本页)和“交流群 → 查看”(打开项目 README,群二维码在那里) |
-| `qml/Veyra/SponsorPanel.qml`(新) | 标题;强调色渐变说明卡;“关注作者”五个平台卡(品牌图标、名称、“前往主页”,整卡可点、悬停上浮);“请作者喝杯咖啡”微信/支付宝两张码卡(220 px 宽,窄窗口自动换行);Ko-fi 官方样式“Buy me a coffee”按钮 + “海外用户可以通过 Ko-fi 支持”;“赞助完全自愿,不影响任何功能”脚注 |
+| `qml/Veyra/SettingsPage.qml` | 左栏最后新增“赞助作者”(粉色心形图标,便于发现);“关于”里原“交流群与赞助”按钮从未接通(只提示“尚未接入”),拆成“赞助作者(Ko-fi、微信与支付宝)→ 前往”(跳本页)和“交流群 → 查看”(打开项目 README,群二维码在那里) |
+| `qml/Veyra/SponsorPanel.qml`(新) | 标题;强调色渐变说明卡;“关注作者”五个平台卡(品牌图标、名称、“前往主页”,整卡可点、悬停上浮);“请作者喝杯咖啡”(金额随意,每一份支持都是很大的鼓励)先放 Ko-fi 官方样式“Buy me a coffee”按钮,下面“中国大陆用户 · 可以用微信或支付宝扫码”放两张码卡(220 px 宽,窄窗口自动换行);“赞助完全自愿,不影响任何功能”脚注 |
| `src/ui/QmlPlayerBridge.cpp/.h` | `openSponsorLink(id)`:链接只写在 C++ 里(界面只传 id,不显示网址);`openProjectPage()` 改为打开 `github.com/Likely7/Veyra-NRVideo#readme`;打不开浏览器时提示。测试开关 `VEYRA_TEST_SPONSOR_NO_BROWSER`(默认不生效)只记日志不开浏览器 |
| `qml/Veyra/sponsor/` | 品牌图标 SVG(`tools/qt_probe/make-sponsor-icons.py` 生成)与两张收款码 PNG |
| `IconData.js` / `icons.js` | 新增 Lucide `coffee`、`external` |
-| `i18n/catalog.json` | 新增 19 条,繁中/英/日全部补齐;删除 5 条不再使用的旧文案 |
+| `i18n/catalog.json` | 新增 20 条,繁中/英/日全部补齐;删除不再使用的旧文案 |
链接(用户提供):B站 `space.bilibili.com/1950053`;抖音 `v.douyin.com/9s06Bf2Inqc/`(用户粘贴的分享文案里只取链接,桌面浏览器跳到
“Likely7玩Ai的抖音”主页);X `x.com/likely2002`;GitHub `github.com/Likely7`;YouTube `youtube.com/@Likely7Ai`;Ko-fi `ko-fi.com/likely7`。
2026-10-19 逐个请求均 HTTP 200。
+## 第二轮(用户试看后)
+
+用户:“应该是咖啡在前面,然后中国大陆用户可以使用两个二维码。”Ko-fi 移到“请作者喝杯咖啡”下第一位(去掉原来的“海外用户可以通过 Ko-fi 支持”),
+两张码卡归到“中国大陆用户 · 可以用微信或支付宝扫码”小标题下;“关于”提示改为“Ko-fi、微信与支付宝”。组件测试和真实程序验收都加了顺序检查
+(Ko-fi 在“中国大陆用户”之上,标题在码卡之上)。
+
## 素材来源
- 品牌图形:Simple Icons 16.34.0(npm,CC0-1.0,2026-10-04 发布),路径数据原样使用,只加底色块和配色;抖音沿用与 TikTok 相同的音符标志,
@@ -36,12 +42,15 @@
## 验证
- 构建:`veyra_qml_ui`、`veyra_qml_quick_tests`(`E:/项目/Veyra/build/claude-sponsor-20261019`,118 秒)。
-- Qt Quick 组件测试 87/87 通过,其中新增 `tst_sponsor_panel.qml` 3 项:六个入口各发出正确 id、10 张图片(含 SVG)全部加载且码图显示宽 220 px、窄宽度下卡片换行不越界。
-- 真实程序验收 `scripts/acceptance/sponsor-gui.py`(`E:/项目/Veyra/logs/claude-sponsor-20261019/gui-20261019-105518`):简中/英文 1280×900、日文/繁中 900×800、英文 900×800 150%,
+- Qt Quick 组件测试 88/88 通过,其中新增 `tst_sponsor_panel.qml` 4 项:六个入口各发出正确 id、10 张图片(含 SVG)全部加载且码图显示宽 220 px、Ko-fi 在中国大陆码卡之前、窄宽度下卡片换行不越界。
+- 真实程序验收 `scripts/acceptance/sponsor-gui.py`(第二轮最终 `E:/项目/Veyra/logs/claude-sponsor-20261019/gui-20261019-111537`):简中/英文 1280×900、日文/繁中 900×800、英文 900×800 150%,
以及软件渲染界面(OBS 游戏捕获兼容,与 RTSS 等监控软件兼容模式同一路径)简中 1280×900,共 6 组全部通过。
每组用投递到窗口的真实鼠标点击(不移动用户光标):首页小字 → 设置“赞助作者”;五个平台卡和 Ko-fi 依次点击,日志按顺序记下六个正确网址;
“关于 → 前往”回到本页。每张卡内文字不越界;从程序实际显示的码卡截图解码,微信、支付宝收款内容与原图一致。
- 首页和赞助页截图在上述日志目录各组的 `home.png`、`settings.png`、`panel.png`。
+- 第二轮第一次全量运行时,软件渲染那一组失败过一次:点完 GitHub 后,测试脚本 0.6 秒后再找 YouTube 卡片时返回空(同一张卡片在上一步刚找到过;
+ 程序日志与通过时逐行相同,没有页面切换或报错)。之后单独连跑 7 次、全量 1 次均通过,GPU 界面从未出现。原因没有查明;脚本已在失败时输出
+ 当前页面、分区与面板是否在场景中,再出现时可以定位。
## 没有验证
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index 502b2776..adc158b5 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -9744,3 +9744,4 @@ final-audit.py pre已通过82旧树/94旧分支/509脏文件与main b571a44不
- 用户要求首页“今天看点什么?”改为“Veyra NR Video”,小字改为“本软件开源免费,如果对你有帮助,你可以 → 请作者喝杯咖啡”并可点到设置新增的赞助页;页内放作者 B站/抖音/X/GitHub/YouTube(图标 + 前往主页,不显示链接)、微信/支付宝收款码和 Ko-fi 咖啡按钮。分支 `claude/sponsor-20261019`(main 1dc8c18),工作树 `E:/项目/Veyra/worktrees/sponsor-20261019`。
- 新增 `SponsorPanel.qml`、`qml/Veyra/sponsor/`(Simple Icons 16.34.0 CC0 品牌图形,`tools/qt_probe/make-sponsor-icons.py` 生成;两张收款码统一 572 px 宽、圆角做进像素,处理后与缩到 216 px 时解码内容均与原图一致)、桥接 `openSponsorLink`(链接只在 C++)。“关于”里从未接通的“交流群与赞助”拆为“赞助作者 → 前往”和“交流群 → 查看”(打开项目 README)。翻译新增 19 条全部补齐。
- 构建 `E:/项目/Veyra/build/claude-sponsor-20261019`(118 秒);Qt Quick 组件测试 87/87(新增 3 项);真实程序 `scripts/acceptance/sponsor-gui.py` 6 组(四种语言、150%、软件渲染界面)真实点击全部通过,日志 `E:/项目/Veyra/logs/claude-sponsor-20261019/gui-20261019-105518`。六个网址 2026-10-19 均 HTTP 200。详见 docs/SPONSOR_PAGE_2026-10-19.md。没有合并 main、推送或发布。
+- 第二轮:用户要求咖啡在前、两个二维码标给中国大陆用户。Ko-fi 移到“请作者喝杯咖啡”下第一位,码卡归到“中国大陆用户 · 可以用微信或支付宝扫码”;组件测试 88/88,真实程序 6 组通过(`gui-20261019-111537`)。软件渲染组曾偶发一次卡片查找为空,未复现(8 次通过),原因未查明,见 docs/SPONSOR_PAGE_2026-10-19.md。
diff --git a/i18n/catalog.json b/i18n/catalog.json
index 68c77b8f..baa33b23 100644
--- a/i18n/catalog.json
+++ b/i18n/catalog.json
@@ -1267,6 +1267,13 @@
"en": "K retains the original model; M and L use DLSS 4.5. L targets lower input resolutions. Quality and processing time depend on the source.",
"ja": "K は従来モデル、M・L は DLSS 4.5 です。L は低い入力解像度向けです。画質と処理時間は映像により異なります。"
},
+ {
+ "zh": "Ko-fi、微信与支付宝",
+ "src": "qml/SettingsPage.qml",
+ "zh-TW": "Ko-fi、微信與支付寶",
+ "en": "Ko-fi, WeChat and Alipay",
+ "ja": "Ko-fi・WeChat・Alipay"
+ },
{
"zh": "LUT 不可用:%1",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -2681,6 +2688,13 @@
"en": "Medium+Low",
"ja": "中+低"
},
+ {
+ "zh": "中国大陆用户",
+ "src": "qml/SponsorPanel.qml",
+ "zh-TW": "中國大陸用戶",
+ "en": "Users in mainland China",
+ "ja": "中国本土の方"
+ },
{
"zh": "中延迟",
"src": "include/veyra/source/CaptureFormatRank.h",
@@ -4831,6 +4845,13 @@
"en": "Can be saved",
"ja": "保存可能"
},
+ {
+ "zh": "可以用微信或支付宝扫码",
+ "src": "qml/SponsorPanel.qml",
+ "zh-TW": "可以用微信或支付寶掃碼",
+ "en": "Scan with WeChat or Alipay",
+ "ja": "WeChat または Alipay でスキャンできます"
+ },
{
"zh": "可变刷新",
"src": "qml/NodePage.qml",
@@ -7876,20 +7897,6 @@
"en": "Standby",
"ja": "待機"
},
- {
- "zh": "微信、支付宝与 Ko-fi",
- "src": "qml/SettingsPage.qml",
- "zh-TW": "微信、支付寶與 Ko-fi",
- "en": "WeChat, Alipay and Ko-fi",
- "ja": "WeChat・Alipay・Ko-fi"
- },
- {
- "zh": "微信或支付宝扫码,金额随意",
- "src": "qml/SponsorPanel.qml",
- "zh-TW": "微信或支付寶掃碼,金額隨意",
- "en": "Scan with WeChat or Alipay, any amount",
- "ja": "WeChat または Alipay でスキャン。金額は自由です"
- },
{
"zh": "微信扫码",
"src": "qml/SponsorPanel.qml",
@@ -11090,13 +11097,6 @@
"en": "Light green",
"ja": "ライトグリーン"
},
- {
- "zh": "海外用户可以通过 Ko-fi 支持",
- "src": "qml/SponsorPanel.qml",
- "zh-TW": "海外用戶可以透過 Ko-fi 支持",
- "en": "Outside China? Support on Ko-fi",
- "ja": "中国国外の方は Ko-fi から支援できます"
- },
{
"zh": "深黑底上的极轻渐变与抖动(防色带)",
"src": "qml/SettingsPage.qml",
@@ -15682,6 +15682,13 @@
"en": "Reconnecting",
"ja": "再接続中"
},
+ {
+ "zh": "金额随意,每一份支持都是很大的鼓励",
+ "src": "qml/SponsorPanel.qml",
+ "zh-TW": "金額隨意,每一份支持都是很大的鼓勵",
+ "en": "Any amount is welcome, and every bit of support means a lot",
+ "ja": "金額は自由です。どんな支援も大きな励みになります"
+ },
{
"zh": "链路中固定为最后一步;画布上可移动",
"src": "qml/NodePage.qml",
diff --git a/qml/Veyra/SettingsPage.qml b/qml/Veyra/SettingsPage.qml
index 365296d8..0e86af0e 100644
--- a/qml/Veyra/SettingsPage.qml
+++ b/qml/Veyra/SettingsPage.qml
@@ -998,7 +998,7 @@ VPage {
}
VRow {
label: qsTr("赞助作者")
- hint: qsTr("微信、支付宝与 Ko-fi")
+ hint: qsTr("Ko-fi、微信与支付宝")
VButton { objectName: "about-sponsor"; text: qsTr("前往"); onClicked: root.section = "sponsor" }
}
VRow {
diff --git a/qml/Veyra/SponsorPanel.qml b/qml/Veyra/SponsorPanel.qml
index 00c0aac0..ecfe26d2 100644
--- a/qml/Veyra/SponsorPanel.qml
+++ b/qml/Veyra/SponsorPanel.qml
@@ -1,4 +1,5 @@
-// 设置 → 赞助作者: the author's pages, the WeChat / Alipay sponsor codes and Ko-fi.
+// 设置 → 赞助作者: the author's pages, then Ko-fi, then the WeChat / Alipay codes for
+// users in mainland China (the order the author asked for, 2026-10-19).
//
// The page names a link by id only; the bridge owns the addresses
// (QmlPlayerBridge::openSponsorLink), so no URL is shown or editable here.
@@ -24,14 +25,17 @@ ColumnLayout {
]
component SectionTitle: ColumnLayout {
+ id: section
property alias text: title.text
property alias hint: hintText.text
+ // A block inside a section (中国大陆用户) rather than a section of its own.
+ property bool small: false
property real motionDy: 0
transform: Translate { y: motionDy }
Layout.fillWidth: true
- Layout.topMargin: 10
+ Layout.topMargin: small ? 6 : 10
spacing: 3
- VH3 { id: title }
+ VH3 { id: title; font.pixelSize: section.small ? 13.5 : Theme.fsH3 }
Text {
id: hintText
Layout.fillWidth: true
@@ -188,7 +192,57 @@ ColumnLayout {
SectionTitle {
text: qsTr("请作者喝杯咖啡")
- hint: qsTr("微信或支付宝扫码,金额随意")
+ hint: qsTr("金额随意,每一份支持都是很大的鼓励")
+ }
+
+ // Ko-fi first, for everyone: drawn as its official "Buy me a coffee" button (the
+ // one in the README).
+ Flow {
+ id: kofiRow
+ property real motionDy: 0
+ transform: Translate { y: kofiRow.motionDy }
+ Layout.fillWidth: true
+ spacing: 14
+ Rectangle {
+ id: kofi
+ objectName: "sponsor-link-kofi"
+ width: kofiContent.implicitWidth + 40
+ height: 46
+ radius: height / 2
+ color: kofiHover.hovered ? "#83AFF5" : "#72A4F2"
+ Behavior on color { ColorAnimation { duration: Theme.d(Theme.durFast) } }
+ scale: kofiTap.pressed ? 0.96 : 1.0
+ Behavior on scale { NumberAnimation { duration: Theme.d(400); easing.bezierCurve: Theme.spring } }
+ Row {
+ id: kofiContent
+ anchors.centerIn: parent
+ spacing: 9
+ Image {
+ anchors.verticalCenter: parent.verticalCenter
+ width: 34; height: 34
+ source: "sponsor/kofi.svg"
+ sourceSize.width: Math.ceil(34 * panel.dpr)
+ sourceSize.height: Math.ceil(34 * panel.dpr)
+ }
+ Text {
+ anchors.verticalCenter: parent.verticalCenter
+ text: "Buy me a coffee"
+ color: "#FFFFFF"
+ font.family: Theme.fontUi
+ font.pixelSize: 16
+ font.weight: Font.Bold
+ }
+ }
+ HoverHandler { id: kofiHover; cursorShape: Qt.PointingHandCursor }
+ TapHandler { id: kofiTap; onTapped: panel.openLink("kofi") }
+ }
+ }
+
+ SectionTitle {
+ objectName: "sponsor-mainland"
+ small: true
+ text: qsTr("中国大陆用户")
+ hint: qsTr("可以用微信或支付宝扫码")
}
// The two codes side by side at one size; a narrow window stacks them.
@@ -253,57 +307,6 @@ ColumnLayout {
}
}
- // Ko-fi, drawn as its official "Buy me a coffee" button (the one in the README).
- Flow {
- id: kofiRow
- property real motionDy: 0
- transform: Translate { y: kofiRow.motionDy }
- Layout.fillWidth: true
- Layout.topMargin: 4
- spacing: 14
- Rectangle {
- id: kofi
- objectName: "sponsor-link-kofi"
- width: kofiContent.implicitWidth + 40
- height: 46
- radius: height / 2
- color: kofiHover.hovered ? "#83AFF5" : "#72A4F2"
- Behavior on color { ColorAnimation { duration: Theme.d(Theme.durFast) } }
- scale: kofiTap.pressed ? 0.96 : 1.0
- Behavior on scale { NumberAnimation { duration: Theme.d(400); easing.bezierCurve: Theme.spring } }
- Row {
- id: kofiContent
- anchors.centerIn: parent
- spacing: 9
- Image {
- anchors.verticalCenter: parent.verticalCenter
- width: 34; height: 34
- source: "sponsor/kofi.svg"
- sourceSize.width: Math.ceil(34 * panel.dpr)
- sourceSize.height: Math.ceil(34 * panel.dpr)
- }
- Text {
- anchors.verticalCenter: parent.verticalCenter
- text: "Buy me a coffee"
- color: "#FFFFFF"
- font.family: Theme.fontUi
- font.pixelSize: 16
- font.weight: Font.Bold
- }
- }
- HoverHandler { id: kofiHover; cursorShape: Qt.PointingHandCursor }
- TapHandler { id: kofiTap; onTapped: panel.openLink("kofi") }
- }
- Text {
- height: kofi.height
- verticalAlignment: Text.AlignVCenter
- text: qsTr("海外用户可以通过 Ko-fi 支持")
- color: Theme.t2
- font.family: Theme.fontUi
- font.pixelSize: Theme.fsBody
- }
- }
-
Text {
id: thanks
property real motionDy: 0
diff --git a/scripts/acceptance/sponsor-gui.py b/scripts/acceptance/sponsor-gui.py
index f3fa100c..c188cfcf 100644
--- a/scripts/acceptance/sponsor-gui.py
+++ b/scripts/acceptance/sponsor-gui.py
@@ -70,6 +70,8 @@ cases = [('zh-CN', 1280, 900, '1', False), ('en', 1280, 900, '1', False), ('ja',
('zh-TW', 900, 800, '1', False), ('en', 900, 800, '1.5', False), ('zh-CN', 1280, 900, '1', True)]
if sys.argv[2:] == ['one']:
cases = cases[:1]
+elif sys.argv[2:] == ['software']:
+ cases = cases[-1:]
results = []
try:
for language, width, height, scale, software in cases:
diff --git a/scripts/acceptance/sponsor-gui.qml b/scripts/acceptance/sponsor-gui.qml
index b0463376..af7c0c6e 100644
--- a/scripts/acceptance/sponsor-gui.qml
+++ b/scripts/acceptance/sponsor-gui.qml
@@ -89,6 +89,9 @@ Item {
test.require(test.find(panel, "sponsor-qr-" + id).status === Image.Ready, id + " code loaded")
}
test.fits(panel, "sponsor panel")
+ const y = name => test.find(panel, name).mapToItem(panel, 0, 0).y
+ test.require(y("sponsor-link-kofi") < y("sponsor-mainland") && y("sponsor-mainland") < y("sponsor-code-wechat"),
+ "Ko-fi comes first, then 中国大陆用户 and the codes")
test.waitUntil = test.ticks + 2
test.shot(test.window(), "settings", 3); return
}
@@ -136,7 +139,10 @@ Item {
Qt.quit()
}
} catch (e) {
- console.log("SPONSOR_UI_FAIL", e.message)
+ const root = test.appRoot
+ console.log("SPONSOR_UI_FAIL", e.message, "step=" + test.step, "link=" + test.linkIndex,
+ "page=" + (root ? root.page : "?"), "section=" + (test.settings ? test.settings.section : "?"),
+ "window=" + !!test.Window.window, "panel=" + !!test.find(test.window(), "set-sponsor"))
test.step = 99
Qt.quit()
} }
diff --git a/tests/qml/quick/tst_sponsor_panel.qml b/tests/qml/quick/tst_sponsor_panel.qml
index cde74760..5a6d18e0 100644
--- a/tests/qml/quick/tst_sponsor_panel.qml
+++ b/tests/qml/quick/tst_sponsor_panel.qml
@@ -2,8 +2,9 @@ import QtQuick
import QtTest
import Veyra
-// 设置 → 赞助作者: every platform card and the Ko-fi button name their page, and the
-// brand tiles and both sponsor codes load (SVGs need the qsvg plugin beside the app).
+// 设置 → 赞助作者: every platform card and the Ko-fi button name their page, Ko-fi comes
+// before the mainland China codes, and the brand tiles and both codes load (SVGs need
+// the qsvg plugin beside the app).
Item {
width: 760; height: 1000
SponsorPanel { id: panel; width: 720 }
@@ -43,6 +44,15 @@ Item {
compare(Math.round(code.paintedWidth), 220, id)
}
}
+ // Ko-fi first, then 中国大陆用户 with the two codes.
+ function test_kofiBeforeMainlandCodes() {
+ panel.width = 720
+ wait(50)
+ const y = name => findChild(panel, name).mapToItem(panel, 0, 0).y
+ verify(y("sponsor-link-kofi") < y("sponsor-mainland"), "Ko-fi above the mainland block")
+ verify(y("sponsor-mainland") < y("sponsor-code-wechat"), "the mainland title above the codes")
+ compare(y("sponsor-code-wechat"), y("sponsor-code-alipay"))
+ }
function test_narrowWraps() {
panel.width = 410
wait(50)