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): home sponsor line and 设置 → 赞助作者 page

Veyra Goal Agent20ab49304c35
diff --git a/AGENTS.md b/AGENTS.md
index 82563237..9caa955b 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,5 +1,7 @@
# Veyra 项目 Agent 执行规则
+> **2026-10-19 首页文案与赞助作者页(Claude)**:用户要求首页“今天看点什么?”改为“Veyra NR Video”、小字改为“本软件开源免费,如果对你有帮助,你可以 → 请作者喝杯咖啡”并跳到设置新增的“赞助作者”页;页内放作者各平台主页(图标 + 前往主页按钮,不显示链接)、用户提供的微信/支付宝收款码与 Ko-fi 咖啡按钮。分支 `claude/sponsor-20261019`(main 1dc8c18),产物 `{用途}/claude-sponsor-20261019`,记录 docs/SPONSOR_PAGE_2026-10-19.md。品牌图形取自 Simple Icons(CC0,标志仍属各自所有者),咖啡/外链图标取自 Lucide(ISC)。只改界面、桥接链接、翻译与测试;不改引擎、运行库、模型、驱动或用户配置;无 merge/push/Release/子 Agent。
+
> **2026-10-19 PR64授权**:用户要求继续合并适配PR64的PR63音频修正,按docs/PR64_AVERMEDIA_PLAN_2026-10-19.md在独立codex/pr64-avermedia-20261019实施;允许圆刚开关/载波/位流解码/会话交付及必要测试/CMake/文档适配,覆盖这些接点旧冻结。存档91旧树104分支/509脏路径(桌面466),无Agent、全E盘、构建-j2≤900秒/测试≤300秒,保留UI33ms/250ms及其他链路/运行库/真实配置。通过定向验收后允许本PR及适配合本地/远端main正常push;不夹带Claude及其他工作、不发布/代发/关机,无圆刚实卡不宣称硬件通过。
> **2026-10-18 PR63接入授权**:用户明确要求合并适配PR63(圆刚厂商音频图)。按docs/PR63_AVERMEDIA_AUDIO_PLAN_2026-10-18.md在codex/pr63-avermedia-audio-20261018实施,允许音频源/位流解码/会话/状态及必要CMake/测试/文档适配,覆盖这些接点的旧冻结。先存档90工作树/103分支状态与哈希、旧桌面466脏路径ZIP(另四旧树43,合计509;统计更正),另记录Claude美颜21在改文件;保留PR57和其他未合分支,不碰Claude施工。通过本机Windows定向验收后允许合并本PR和适配到main、普通GitHub同步,不发布/代发评论/关机。厂商DLL只可读本机已安装原件、无实卡不虚报;专有文件不改不进Git,产物全E盘,构建≤900秒/测试≤300秒、限-j2、无Agent/UI频率变更。
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index 748891b6..a7120f2b 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -256,6 +256,18 @@ Source: https://github.com/lucide-icons/lucide/tree/a537cb6eb323b885f4c60baf3cec
The Qt/QML interface (2026-09-26) draws the Lucide geometry that the approved prototype carries in `prototypes/ui-redesign-2026-09-25/icons.js`. `tools/qt_probe/make-icons.py` converts those SVG elements to path data in `qml/Veyra/IconData.js`, rendered by `qml/Veyra/VIcon.qml`; the same Lucide ISC / Feather MIT notices in `assets/icons/lucide/LICENSE` apply. `back10`, `fwd10`, `playfill` and `pausefill` in that file are the prototype's own inline SVGs, not Lucide.
+The sponsor page (2026-10-19) adds Lucide `coffee` and `external-link` (as `external`) from lucide-static 1.51.0 to the same
+`icons.js`, under the same ISC notice.
+
+## Simple Icons brand glyphs (sponsor page, 2026-10-19)
+
+设置 → 赞助作者 draws the Bilibili, TikTok (Douyin uses the same mark), X, GitHub, YouTube, Ko-fi, WeChat and Alipay
+glyphs from [Simple Icons](https://github.com/simple-icons/simple-icons) 16.34.0 (npm `simple-icons`, CC0-1.0).
+`tools/qt_probe/make-sponsor-icons.py` places the unmodified path data on coloured tiles in `qml/Veyra/sponsor/*.svg`;
+the Ko-fi glyph is split into its subpaths to colour the cup the way Ko-fi's own button does. CC0 covers the
+drawings only: the logos remain trademarks of their owners and are used solely to link to the author's own
+pages; no endorsement is implied.
+
## RTX Video SDK 1.1 local VSR adapter
User-provided official SDK from https://developer.nvidia.com/rtx-video-sdk/getting-started, kept under ignored third_party_local/nvidia/RTX_Video_SDK_1.1.0. Its NVIDIA RTX SDK license remains applicable. VideoSrBackend is independently authored against the documented VSR parameter ABI; no SDK sample implementation or proprietary header is copied into the repository. Local nvngx_vsr.dll remains excluded from Git. Under the user-authorized 2026-09-09 Release Runtime Pack policy, its pinned signed release copy may be included only as a Release asset alongside the applicable SDK license and manifest; it is never committed to source control.
@@ -316,6 +328,7 @@ Thank you to these projects and their contributors. Integrated code, dependencie
| [SDL](https://github.com/libsdl-org/SDL) | PC controller input, DualSense support and haptic audio output. |
| [AMD FidelityFX SDK](https://github.com/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK) | Optical flow and its D3D12 backend. |
| [Lucide](https://github.com/lucide-icons/lucide) | UI icons, retaining Lucide and Feather-derived license notices. |
+| [Simple Icons](https://github.com/simple-icons/simple-icons) | Brand glyphs on the sponsor page (CC0; the logos stay their owners' trademarks). |
| [Intel XeSS / XeLL](https://github.com/intel/xess) | Experimental XeSS frame generation and related runtime interfaces. |
| [NVIDIA DLSS](https://github.com/NVIDIA/DLSS), [RTX Video SDK](https://developer.nvidia.com/rtx-video-sdk), [Optical Flow SDK](https://developer.nvidia.com/opticalflow-sdk), [Video Codec SDK](https://developer.nvidia.com/video-codec-sdk) | Upscaling, optical flow, encoding and enhancement interfaces. Experimental NR components have separate identities and boundaries in [Runtime Components](docs/RUNTIME_COMPONENTS_1.1.0.md); this is not vendor certification. |
| [vcpkg](https://github.com/microsoft/vcpkg) | Dependency builds, version records and license provenance. |
diff --git a/docs/SPONSOR_PAGE_2026-10-19.md b/docs/SPONSOR_PAGE_2026-10-19.md
new file mode 100644
index 00000000..208c9ea0
--- /dev/null
+++ b/docs/SPONSOR_PAGE_2026-10-19.md
@@ -0,0 +1,49 @@
+# 首页文案与“赞助作者”页(2026-10-19,Claude)
+
+用户要求:首页“今天看点什么?”改为“Veyra NR Video”,下面的小字改为“本软件开源免费 如果对你有帮助你可以→请作者喝杯咖啡”,
+点小字跳到设置里新增的赞助页;赞助页先放作者账号(B站、抖音、X、GitHub、YouTube,用图标和“前往主页”按钮,不显示链接),
+下面放赞助码(绿底微信、蓝底支付宝)和 Ko-fi 咖啡按钮(与 GitHub README 上的一样)。“我们现在有点入不敷出,得多拉点赞助。”
+
+分支 `claude/sponsor-20261019`(main `1dc8c18`),工作树 `E:/项目/Veyra/worktrees/sponsor-20261019`。没有合并 main、推送或发布。
+
+## 改动
+
+| 位置 | 内容 |
+|---|---|
+| `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 支持”;“赞助完全自愿,不影响任何功能”脚注 |
+| `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 条不再使用的旧文案 |
+
+链接(用户提供):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。
+
+## 素材来源
+
+- 品牌图形:Simple Icons 16.34.0(npm,CC0-1.0,2026-10-04 发布),路径数据原样使用,只加底色块和配色;抖音沿用与 TikTok 相同的音符标志,
+ 按抖音配色叠青/红偏移;Ko-fi 杯子按其官方按钮拆层上色(白杯、深色描边、红心、白边)。原始文件在
+ `E:/项目/Veyra/deps/claude-sponsor-20261019/simple-icons-16.34.0`。CC0 只覆盖图形本身,标志仍是各自所有者的商标,这里只用于链接作者自己的主页。
+- 咖啡、外链图标:lucide-static 1.51.0(ISC),与项目已有 Lucide 图标同一许可。
+- Ko-fi 按钮颜色取自 README 使用的官方按钮图 `kofi5.png`(底色 #72A4F2、心形 #FF5A16、描边 #202020),在界面里用矢量重画,不打包该图片。
+- 收款码:用户本次提供的两张原图。统一为 572 px 宽并把圆角做进像素(软件渲染没有着色器遮罩)。脚本
+ `E:/项目/Veyra/tmp/claude-sponsor-20261019/tools/qr_images.py` 逐张核对:处理后的图片、以及缩到 216 px 宽时,解出的收款内容与原图完全相同(只比较、不打印内容)。
+
+## 验证
+
+- 构建:`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%,
+ 以及软件渲染界面(OBS 游戏捕获兼容,与 RTSS 等监控软件兼容模式同一路径)简中 1280×900,共 6 组全部通过。
+ 每组用投递到窗口的真实鼠标点击(不移动用户光标):首页小字 → 设置“赞助作者”;五个平台卡和 Ko-fi 依次点击,日志按顺序记下六个正确网址;
+ “关于 → 前往”回到本页。每张卡内文字不越界;从程序实际显示的码卡截图解码,微信、支付宝收款内容与原图一致。
+- 首页和赞助页截图在上述日志目录各组的 `home.png`、`settings.png`、`panel.png`。
+
+## 没有验证
+
+- 自动测试用测试开关代替真正打开浏览器;真实点击打开默认浏览器需要用户在测试版里点一下确认。
+- 用手机实际扫描屏幕上的码(已用 OpenCV 从程序截图解码验证)。
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index 282c3616..502b2776 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -9738,3 +9738,9 @@ final-audit.py pre已通过82旧树/94旧分支/509脏文件与main b571a44不
- 所有命令、失败夹具修正、实际路径和边界见docs/PR57_INTEGRATION_REPORT_2026-10-17.md及E:/项目/Veyra/reports/pr57-capture-window-20261017。合并前verify通过:84旧树、96分支、509脏文件与1524共享组件保持。用户请求PR合并,不发布/改包/关机。
- PR57远端合并确认:2026-10-17T14:09:26Z,state=MERGED,merge=9c7b342,main正常推送7e2157d;保留云端源分支。本补充仅文档回执,不改已验收代码;最终保护与source-after.bundle回执在E:/项目/Veyra/reports/pr57-capture-window-20261017/final.json。
+
+## 2026-10-19 首页文案与赞助作者页(Claude)
+
+- 用户要求首页“今天看点什么?”改为“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、推送或发布。
diff --git a/i18n/catalog.json b/i18n/catalog.json
index 2a6e2f10..68c77b8f 100644
--- a/i18n/catalog.json
+++ b/i18n/catalog.json
@@ -2009,6 +2009,13 @@
"en": "VFG requires an NVIDIA Ada / Blackwell GPU (RTX 40 / 50).",
"ja": "VFG には NVIDIA Ada / Blackwell GPU(RTX 40 / 50)が必要です。"
},
+ {
+ "zh": "Veyra 开源免费,也需要你的支持",
+ "src": "qml/SponsorPanel.qml",
+ "zh-TW": "Veyra 開源免費,也需要你的支持",
+ "en": "Veyra is free and open source, and it runs on your support",
+ "ja": "Veyra は無料のオープンソース。皆さんの支援が支えです"
+ },
{
"zh": "Veyra 本地诊断(复制前脱敏预览;不会上传)\n",
"src": "src/base/Log.cpp",
@@ -3067,11 +3074,11 @@
"ja": "ホストが長時間ストリーミングの準備ができていません。電源とネットワークを確認してください。"
},
{
- "zh": "交流群与赞助",
+ "zh": "交流群",
"src": "qml/SettingsPage.qml",
- "zh-TW": "交流群與贊助",
- "en": "Community and sponsorship",
- "ja": "コミュニティと支援"
+ "zh-TW": "交流群",
+ "en": "Community groups",
+ "ja": "コミュニティ"
},
{
"zh": "亮",
@@ -3143,13 +3150,6 @@
"en": "Captures video only; software UI with simpler shadows and blur",
"ja": "映像のみキャプチャ。UI はソフトウェア描画になり、一部の影・ぼかしを簡略化"
},
- {
- "zh": "今天看点什么?",
- "src": "qml/HomePage.qml",
- "zh-TW": "今天看點什麼?",
- "en": "What are we watching today?",
- "ja": "今日は何を観ますか?"
- },
{
"zh": "从列表移除,不删除文件",
"src": "qml/PlaylistWindow.qml",
@@ -3647,6 +3647,13 @@
"en": "Off",
"ja": "電源オフ"
},
+ {
+ "zh": "关注作者",
+ "src": "qml/SponsorPanel.qml",
+ "zh-TW": "追蹤作者",
+ "en": "Follow the author",
+ "ja": "作者をフォロー"
+ },
{
"zh": "关闭",
"src": "qml/CaptureLegacyPicker.qml",
@@ -4257,6 +4264,20 @@
"en": "Refresh devices",
"ja": "デバイスを更新"
},
+ {
+ "zh": "前往",
+ "src": "qml/SettingsPage.qml",
+ "zh-TW": "前往",
+ "en": "Go",
+ "ja": "開く"
+ },
+ {
+ "zh": "前往主页",
+ "src": "qml/SponsorPanel.qml",
+ "zh-TW": "前往主頁",
+ "en": "Visit page",
+ "ja": "ページを開く"
+ },
{
"zh": "剪贴板不是有效的 Sony 授权回调地址。请复制登录完成后的完整 URL。",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -5062,6 +5083,13 @@
"en": "Shares pairings with PS5 streaming",
"ja": "「PS5 ストリーミング」とペアリングを共有"
},
+ {
+ "zh": "哔哩哔哩",
+ "src": "qml/SponsorPanel.qml",
+ "zh-TW": "嗶哩嗶哩",
+ "en": "Bilibili",
+ "ja": "bilibili"
+ },
{
"zh": "唤醒",
"src": "qml/DialogHost.qml",
@@ -7351,6 +7379,13 @@
"en": "Switches, progress, selected state",
"ja": "スイッチ、進行状況、選択状態"
},
+ {
+ "zh": "开发和测试设备的开销一直由作者自己承担。如果 Veyra 对你有帮助,欢迎请作者喝杯咖啡,你的支持就是持续更新的动力。",
+ "src": "qml/SponsorPanel.qml",
+ "zh-TW": "開發和測試設備的開銷一直由作者自己承擔。如果 Veyra 對你有幫助,歡迎請作者喝杯咖啡,你的支持就是持續更新的動力。",
+ "en": "The author has always paid for development and test hardware out of pocket. If Veyra helps you, consider buying the author a coffee: your support is what keeps the updates coming.",
+ "ja": "開発とテスト機材の費用は、これまで作者が自分で負担してきました。Veyra が役に立ったら、作者にコーヒーを一杯おごってください。皆さんの支援が更新を続ける力になります。"
+ },
{
"zh": "开启使用新版模型 B;关闭使用旧版模型 A。切换会重建 NR,画面可能有所不同。",
"src": "qml/NrLayerEditor.qml",
@@ -7841,6 +7876,27 @@
"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",
+ "zh-TW": "微信掃碼",
+ "en": "WeChat Pay",
+ "ja": "WeChat Pay"
+ },
{
"zh": "快捷键",
"src": "qml/SettingsPage.qml",
@@ -8198,13 +8254,6 @@
"en": "Opening timed out",
"ja": "開くのがタイムアウトしました"
},
- {
- "zh": "打开项目页面尚未接入",
- "src": "src/ui/QmlPlayerBridge.cpp",
- "zh-TW": "開啟專案頁面尚未接入",
- "en": "Opening the project page is not wired up yet",
- "ja": "プロジェクトページを開く機能はまだありません"
- },
{
"zh": "执行失败;请查看日志",
"src": "src/engine/EngineController.cpp",
@@ -8282,6 +8331,13 @@
"en": "Suppress added tint on white walls, clouds and gray areas",
"ja": "白い壁、雲、灰色領域への余計な着色を抑えます"
},
+ {
+ "zh": "抖音",
+ "src": "qml/SponsorPanel.qml",
+ "zh-TW": "抖音",
+ "en": "Douyin",
+ "ja": "Douyin"
+ },
{
"zh": "抗闪烁档位",
"src": "qml/NrLayerEditor.qml",
@@ -8654,6 +8710,13 @@
"en": "The operation failed; check the network, input and free disk space.",
"ja": "操作に失敗しました。ネットワーク、入力、ディスクの空き容量を確認してください。"
},
+ {
+ "zh": "支付宝扫码",
+ "src": "qml/SponsorPanel.qml",
+ "zh-TW": "支付寶掃碼",
+ "en": "Alipay",
+ "ja": "Alipay"
+ },
{
"zh": "收 ",
"src": "qml/StreamHud.qml",
@@ -9088,6 +9151,13 @@
"en": "Could not open the data folder",
"ja": "データフォルダーを開けません"
},
+ {
+ "zh": "无法打开浏览器",
+ "src": "src/ui/QmlPlayerBridge.cpp",
+ "zh-TW": "無法開啟瀏覽器",
+ "en": "Could not open the browser",
+ "ja": "ブラウザーを開けませんでした"
+ },
{
"zh": "无法打开浏览器,请检查默认浏览器设置。",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -10096,6 +10166,13 @@
"en": "VRAM kept growing in fullscreen during this session. Use windowed playback; reopen the source to test fullscreen again.",
"ja": "この再生では全画面中に VRAM が増え続けました。ウィンドウ表示を使用してください。ソースを開き直すと全画面を再テストできます。"
},
+ {
+ "zh": "本软件开源免费,如果对你有帮助,你可以 →",
+ "src": "qml/HomePage.qml",
+ "zh-TW": "本軟體開源免費,如果對你有幫助,你可以 →",
+ "en": "This software is free and open source. If it helps you, you can →",
+ "ja": "本ソフトは無料のオープンソースです。役に立ったら →"
+ },
{
"zh": "松开以追加到播放列表",
"src": "qml/PlaylistWindow.qml",
@@ -11013,6 +11090,13 @@
"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",
@@ -12357,6 +12441,13 @@
"en": "Magewell capture failed to start; back to normal capture (see magewell in the log)",
"ja": "Magewell のキャプチャーを開始できず、通常のキャプチャーに戻しました(ログの magewell を参照)"
},
+ {
+ "zh": "群二维码在项目主页 README 里",
+ "src": "qml/SettingsPage.qml",
+ "zh-TW": "群組 QR 碼在專案主頁 README 裡",
+ "en": "The group QR codes are in the project README",
+ "ja": "グループの QR コードはプロジェクトの README にあります"
+ },
{
"zh": "羽化像素",
"src": "qml/ProPage.qml",
@@ -13624,6 +13715,13 @@
"en": "This node type has reached its limit (including disabled and unconnected nodes)",
"ja": "この種類のノードは上限に達しています(無効・未接続のノードを含む)"
},
+ {
+ "zh": "请作者喝杯咖啡",
+ "src": "qml/HomePage.qml",
+ "zh-TW": "請作者喝杯咖啡",
+ "en": "Buy the author a coffee",
+ "ja": "作者にコーヒーをおごる"
+ },
{
"zh": "请先切换到要保存的编辑模式",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -14079,6 +14177,20 @@
"en": "Resource unavailable",
"ja": "リソースを使用できません"
},
+ {
+ "zh": "赞助作者",
+ "src": "qml/SettingsPage.qml",
+ "zh-TW": "贊助作者",
+ "en": "Support the author",
+ "ja": "作者を支援"
+ },
+ {
+ "zh": "赞助完全自愿,不影响任何功能。谢谢你的支持!",
+ "src": "qml/SponsorPanel.qml",
+ "zh-TW": "贊助完全自願,不影響任何功能。謝謝你的支持!",
+ "en": "Sponsoring is entirely voluntary and doesn't affect any feature. Thank you for your support!",
+ "ja": "支援は任意で、機能には一切影響しません。ご支援ありがとうございます!"
+ },
{
"zh": "超分",
"src": "include/veyra/engine/BackendRecovery.h",
@@ -15017,13 +15129,6 @@
"en": "Fit to window",
"ja": "ウィンドウに合わせる"
},
- {
- "zh": "选一个片源开始,画质预设和补帧随时在播放栏切换",
- "src": "qml/HomePage.qml",
- "zh-TW": "選一個片源開始,畫質預設和補幀隨時在播放欄切換",
- "en": "Choose a source to start; picture presets and frame generation can be switched in the playback bar at any time",
- "ja": "ソースを選んで開始します。画質プリセットとフレーム生成は再生バーでいつでも切り替えられます"
- },
{
"zh": "选择保存目录…",
"src": "qml/ExportPage.qml",
@@ -16060,13 +16165,6 @@
"en": "Page switcher",
"ja": "ページ切り替えバー"
},
- {
- "zh": "项目主页 README 里的二维码",
- "src": "qml/SettingsPage.qml",
- "zh-TW": "專案主頁 README 裡的二維碼",
- "en": "The QR code in the project README",
- "ja": "プロジェクトの README にある QR コード"
- },
{
"zh": "预算 ",
"src": "qml/ProPage.qml",
diff --git a/include/veyra/ui/QmlPlayerBridge.h b/include/veyra/ui/QmlPlayerBridge.h
index 40f192dd..5167f417 100644
--- a/include/veyra/ui/QmlPlayerBridge.h
+++ b/include/veyra/ui/QmlPlayerBridge.h
@@ -793,6 +793,9 @@ public:
Q_INVOKABLE bool presentationOverlayRunning() const;
Q_INVOKABLE void openFeedbackPage();
Q_INVOKABLE void openReleasesPage();
+ // 设置 → 赞助作者: opens the author's page for `id` (bilibili, douyin, x, github,
+ // youtube, kofi) in the browser. The addresses live here; any other id does nothing.
+ Q_INVOKABLE bool openSponsorLink(const QString& id);
QObject* updates() const;
QVariantList audioDevices() const;
QVariantList gpuMonitorChoices() const;
diff --git a/prototypes/ui-redesign-2026-09-25/icons.js b/prototypes/ui-redesign-2026-09-25/icons.js
index 4d4dd35d..63bc7cf1 100644
--- a/prototypes/ui-redesign-2026-09-25/icons.js
+++ b/prototypes/ui-redesign-2026-09-25/icons.js
@@ -65,7 +65,9 @@ window.VI = (function () {
import: '<path d="M12 3v12"/><path d="m8 11 4 4 4-4"/><path d="M8 5H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-4"/>',
minus: '<path d="M5 12h14"/>',
dup: '<rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',
- bell: '<path d="M10.268 21a2 2 0 0 0 3.464 0M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"/>'
+ bell: '<path d="M10.268 21a2 2 0 0 0 3.464 0M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"/>',
+ coffee: '<path d="M10 2v2"/><path d="M14 2v2"/><path d="M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1"/><path d="M6 2v2"/>',
+ external: '<path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>'
};
const i = (n, cls) => `<svg class="i${cls ? ' ' + cls : ''}" viewBox="0 0 24 24" aria-hidden="true">${P[n] || ''}</svg>`;
i.paths = P;
diff --git a/qml/Veyra/HomePage.qml b/qml/Veyra/HomePage.qml
index 9f5f339d..623544c3 100644
--- a/qml/Veyra/HomePage.qml
+++ b/qml/Veyra/HomePage.qml
@@ -11,6 +11,8 @@ import QtQuick.Effects
VPage {
id: root
signal requestPage(string page)
+ // The coffee line under the title: Main opens 设置 → 赞助作者.
+ signal requestSponsor()
ColumnLayout {
anchors.centerIn: parent
@@ -63,25 +65,59 @@ VPage {
}
}
- // .hello: .h1 plus a muted line.
+ // .hello: .h1 plus a muted line. The line asks for a coffee; the whole of it
+ // opens the sponsor section of 设置.
ColumnLayout {
id: hello
Layout.alignment: Qt.AlignHCenter
spacing: 6
Text {
Layout.alignment: Qt.AlignHCenter
- text: qsTr("今天看点什么?")
+ text: "Veyra NR Video"
color: Theme.t1
font.family: Theme.fontUi
font.pixelSize: Theme.fsH1
font.weight: Font.DemiBold; font.variableAxes: Theme.axesDemiBold
}
- Text {
+ Item {
+ id: sponsorLine
+ objectName: "home-sponsor"
Layout.alignment: Qt.AlignHCenter
- text: qsTr("选一个片源开始,画质预设和补帧随时在播放栏切换")
- color: Theme.t2
- font.family: Theme.fontUi
- font.pixelSize: Theme.fsBody
+ implicitWidth: sponsorRow.implicitWidth
+ implicitHeight: sponsorRow.implicitHeight
+ Row {
+ id: sponsorRow
+ spacing: 5
+ Text {
+ anchors.verticalCenter: parent.verticalCenter
+ text: qsTr("本软件开源免费,如果对你有帮助,你可以 →")
+ color: sponsorHover.hovered ? Theme.t1 : Theme.t2
+ font.family: Theme.fontUi
+ font.pixelSize: Theme.fsBody
+ }
+ VIcon {
+ anchors.verticalCenter: parent.verticalCenter
+ name: "coffee"
+ size: 14
+ color: Theme.accent
+ }
+ Text {
+ anchors.verticalCenter: parent.verticalCenter
+ text: qsTr("请作者喝杯咖啡")
+ color: Theme.accent
+ font.family: Theme.fontUi
+ font.pixelSize: Theme.fsBody
+ font.weight: Font.Medium
+ font.underline: sponsorHover.hovered
+ }
+ }
+ HoverHandler { id: sponsorHover; cursorShape: Qt.PointingHandCursor }
+ TapHandler {
+ onTapped: {
+ veyra.logUi("ui-sponsor", "home link")
+ root.requestSponsor()
+ }
+ }
}
}
diff --git a/qml/Veyra/IconData.js b/qml/Veyra/IconData.js
index fcdfe55c..3e12cbd6 100644
--- a/qml/Veyra/IconData.js
+++ b/qml/Veyra/IconData.js
@@ -69,6 +69,8 @@ var paths = {
"minus": "M5 12h14",
"dup": "M10 8h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2zM4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
"bell": "M10.268 21a2 2 0 0 0 3.464 0M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",
+ "coffee": "M10 2v2M14 2v2M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1M6 2v2",
+ "external": "M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",
"back10": "M11 17l-5-5 5-5M18 17l-5-5 5-5",
"fwd10": "M13 17l5-5-5-5M6 17l5-5-5-5",
"playfill": "M7 4L20 12L7 20z",
diff --git a/qml/Veyra/Main.qml b/qml/Veyra/Main.qml
index 993734f5..96a8b85f 100644
--- a/qml/Veyra/Main.qml
+++ b/qml/Veyra/Main.qml
@@ -45,6 +45,11 @@ Window {
// node configuration is active, so the dock never drops into the list UI.
function goPageTarget(p) { return p === "pro" && veyra.nodeMode === 1 ? "node" : p }
function goPage(p) { page = goPageTarget(p) }
+ // 设置 → 赞助作者, from the home page's coffee line.
+ function showSponsor() {
+ settingsPage.section = "sponsor"
+ goPage("set")
+ }
// Test switches from the command line (main.cpp, G0.3); empty in normal use.
readonly property var test: typeof vyTest !== "undefined" ? vyTest : ({})
readonly property real testAspect: test.aspect !== undefined ? test.aspect : 0
@@ -253,7 +258,7 @@ Window {
visible: !root.fullscreen || root.page === "home" || root.page === "set" || root.quickPanelShown
// Each page is shown while current or while sinking out; the sinking one
// takes no input (.page.leave { pointer-events: none }).
- HomePage { id: homePage; pageId: "home"; home: pages; onRequestPage: p => root.goPage(p) }
+ HomePage { id: homePage; pageId: "home"; home: pages; onRequestPage: p => root.goPage(p); onRequestSponsor: root.showSponsor() }
MinimalPage {
id: minPage
pageId: "min"
diff --git a/qml/Veyra/SettingsPage.qml b/qml/Veyra/SettingsPage.qml
index 23361be9..365296d8 100644
--- a/qml/Veyra/SettingsPage.qml
+++ b/qml/Veyra/SettingsPage.qml
@@ -1,7 +1,7 @@
// 设置, rebuilt from the design (pages-b.js PAGES.set + pages.css .set).
//
// Design: a 220px nav column (外观 / 启动与窗口 / 播放 / 音频 / 性能 / 兼容 /
-// PS5 串流 / 快捷键 / 组件与许可 / 关于; split 2026-10-05 because one page held
+// PS5 串流 / 快捷键 / 组件与许可 / 关于 / 赞助作者; split 2026-10-05 because one page held
// almost every setting) and a large body. The design deliberately has NO
// capture-card section here: capture settings live in the capture dialog.
//
@@ -25,7 +25,7 @@ VPage {
// render(true): 480 ms, i*40 ms, y 12).
Qt.callLater(() => stagger(sectionColumns[section] || null))
}
- readonly property var sectionColumns: ({ look: secLook, window: secWindow, play: secPlay, audio: secAudio, perf: secPerf, compat: secCompat, ps5: secPs5, keys: secKeys, comp: secComp, about: secAbout })
+ readonly property var sectionColumns: ({ look: secLook, window: secWindow, play: secPlay, audio: secAudio, perf: secPerf, compat: secCompat, ps5: secPs5, keys: secKeys, comp: secComp, about: secAbout, sponsor: secSponsor })
Component { id: staggerComp; VRise.Stagger {} }
function stagger(col) {
if (Theme.reduced || !col) return
@@ -48,7 +48,9 @@ VPage {
{ id: "ps5", label: qsTr("PS5 串流"), icon: "gamepad" },
{ id: "keys", label: qsTr("快捷键"), icon: "zap" },
{ id: "comp", label: qsTr("组件与许可"), icon: "box" },
- { id: "about", label: qsTr("关于"), icon: "info" }
+ { id: "about", label: qsTr("关于"), icon: "info" },
+ // The one entry with a coloured icon, so it can be found.
+ { id: "sponsor", label: qsTr("赞助作者"), icon: "heart", tint: "#FF6B81" }
]
// --- nav ---------------------------------------------------------------
@@ -92,7 +94,7 @@ VPage {
anchors.verticalCenter: parent.verticalCenter
name: modelData.icon
size: 15
- color: navLabel.color
+ color: modelData.tint !== undefined ? modelData.tint : navLabel.color
}
Text {
id: navLabel
@@ -995,8 +997,13 @@ VPage {
VButton { text: qsTr("打开"); onClicked: veyra.openFeedbackPage() }
}
VRow {
- label: qsTr("交流群与赞助")
- hint: qsTr("项目主页 README 里的二维码")
+ label: qsTr("赞助作者")
+ hint: qsTr("微信、支付宝与 Ko-fi")
+ VButton { objectName: "about-sponsor"; text: qsTr("前往"); onClicked: root.section = "sponsor" }
+ }
+ VRow {
+ label: qsTr("交流群")
+ hint: qsTr("群二维码在项目主页 README 里")
VButton { text: qsTr("查看"); onClicked: veyra.openProjectPage() }
}
VRow {
@@ -1041,6 +1048,15 @@ VPage {
}
}
+ // --- 赞助作者 ------------------------------------------------
+ SponsorPanel {
+ id: secSponsor
+ objectName: "set-sponsor"
+ Layout.fillWidth: true
+ visible: root.section === "sponsor"
+ onOpenLink: id => veyra.openSponsorLink(id)
+ }
+
Item { Layout.preferredHeight: 12 }
}
}
diff --git a/qml/Veyra/SponsorPanel.qml b/qml/Veyra/SponsorPanel.qml
new file mode 100644
index 00000000..00c0aac0
--- /dev/null
+++ b/qml/Veyra/SponsorPanel.qml
@@ -0,0 +1,319 @@
+// 设置 → 赞助作者: the author's pages, the WeChat / Alipay sponsor codes and Ko-fi.
+//
+// The page names a link by id only; the bridge owns the addresses
+// (QmlPlayerBridge::openSponsorLink), so no URL is shown or editable here.
+// Brand tiles are SVGs made by tools/qt_probe/make-sponsor-icons.py from Simple
+// Icons (CC0). The QR images are the author's own codes, rounded in the pixels:
+// the software renderer cannot run a shader mask.
+import QtQuick
+import QtQuick.Layouts
+import QtQuick.Window
+
+ColumnLayout {
+ id: panel
+ signal openLink(string id)
+ spacing: 12
+
+ readonly property real dpr: Screen.devicePixelRatio > 0 ? Screen.devicePixelRatio : 1
+ readonly property var socials: [
+ { id: "bilibili", name: qsTr("哔哩哔哩") },
+ { id: "douyin", name: qsTr("抖音") },
+ { id: "x", name: "X" },
+ { id: "github", name: "GitHub" },
+ { id: "youtube", name: "YouTube" }
+ ]
+
+ component SectionTitle: ColumnLayout {
+ property alias text: title.text
+ property alias hint: hintText.text
+ property real motionDy: 0
+ transform: Translate { y: motionDy }
+ Layout.fillWidth: true
+ Layout.topMargin: 10
+ spacing: 3
+ VH3 { id: title }
+ Text {
+ id: hintText
+ Layout.fillWidth: true
+ visible: text.length > 0
+ color: Theme.t2
+ font.family: Theme.fontUi
+ font.pixelSize: Theme.fsBody
+ wrapMode: Text.WordWrap
+ }
+ }
+
+ VH1 { text: qsTr("赞助作者") }
+
+ // The appeal, on the accent-tinted plate the home page uses for 继续上次.
+ Rectangle {
+ id: hero
+ property real motionDy: 0
+ transform: Translate { y: hero.motionDy }
+ Layout.fillWidth: true
+ implicitHeight: heroRow.implicitHeight + 36
+ radius: Theme.rCard
+ border.width: 1
+ border.color: Theme.stroke
+ gradient: Gradient {
+ orientation: Gradient.Horizontal
+ GradientStop { position: 0.0; color: Theme.accentSoft }
+ GradientStop { position: 1.0; color: Qt.rgba(1, 1, 1, 0.03) }
+ }
+ RowLayout {
+ id: heroRow
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.leftMargin: 18
+ anchors.rightMargin: 18
+ spacing: 16
+ Rectangle {
+ Layout.alignment: Qt.AlignTop
+ implicitWidth: 48; implicitHeight: 48; radius: 14
+ color: Theme.accentSoft
+ VIcon { anchors.centerIn: parent; name: "coffee"; size: 24; color: Theme.accent }
+ }
+ ColumnLayout {
+ Layout.fillWidth: true
+ spacing: 6
+ Text {
+ Layout.fillWidth: true
+ text: qsTr("Veyra 开源免费,也需要你的支持")
+ color: Theme.t1
+ font.family: Theme.fontUi
+ font.pixelSize: Theme.fsH3
+ font.weight: Font.DemiBold; font.variableAxes: Theme.axesDemiBold
+ wrapMode: Text.WordWrap
+ }
+ Text {
+ Layout.fillWidth: true
+ text: qsTr("开发和测试设备的开销一直由作者自己承担。如果 Veyra 对你有帮助,欢迎请作者喝杯咖啡,你的支持就是持续更新的动力。")
+ color: Theme.t2
+ font.family: Theme.fontUi
+ font.pixelSize: Theme.fsBody
+ lineHeight: 1.25
+ wrapMode: Text.WordWrap
+ }
+ }
+ }
+ }
+
+ SectionTitle { text: qsTr("关注作者") }
+
+ // One tile per platform: the brand tile, its name and 前往主页. The whole card
+ // is the button; it lifts on hover like the home page's source cards.
+ Flow {
+ id: socialFlow
+ property real motionDy: 0
+ transform: Translate { y: socialFlow.motionDy }
+ Layout.fillWidth: true
+ spacing: 10
+ Repeater {
+ model: panel.socials
+ delegate: Item {
+ id: slot
+ required property var modelData
+ width: 128
+ height: 138
+ Rectangle {
+ id: social
+ objectName: "sponsor-link-" + slot.modelData.id
+ width: parent.width
+ height: parent.height
+ radius: Theme.rCard
+ color: socialHover.hovered ? Theme.card3 : Theme.card2
+ border.width: 1
+ border.color: socialHover.hovered ? Theme.stroke2 : Theme.stroke
+ y: socialHover.hovered ? -3 : 0
+ Behavior on y { NumberAnimation { duration: Theme.d(500); easing.bezierCurve: Theme.spring } }
+ scale: socialTap.pressed ? 0.97 : 1.0
+ Behavior on scale { NumberAnimation { duration: Theme.d(400); easing.bezierCurve: Theme.spring } }
+ ColumnLayout {
+ anchors.centerIn: parent
+ spacing: 0
+ Image {
+ Layout.alignment: Qt.AlignHCenter
+ Layout.preferredWidth: 44
+ Layout.preferredHeight: 44
+ source: "sponsor/" + slot.modelData.id + ".svg"
+ sourceSize.width: Math.ceil(44 * panel.dpr)
+ sourceSize.height: Math.ceil(44 * panel.dpr)
+ smooth: true
+ }
+ Text {
+ Layout.alignment: Qt.AlignHCenter
+ Layout.topMargin: 9
+ text: slot.modelData.name
+ color: Theme.t1
+ font.family: Theme.fontUi
+ font.pixelSize: 13
+ font.weight: Font.Medium
+ }
+ Rectangle {
+ Layout.alignment: Qt.AlignHCenter
+ Layout.topMargin: 10
+ implicitWidth: goRow.implicitWidth + 20
+ implicitHeight: 26
+ radius: 8
+ color: socialHover.hovered ? Theme.accent : Qt.rgba(1, 1, 1, 0.06)
+ Behavior on color { ColorAnimation { duration: Theme.d(Theme.durFast) } }
+ Row {
+ id: goRow
+ anchors.centerIn: parent
+ spacing: 5
+ Text {
+ anchors.verticalCenter: parent.verticalCenter
+ text: qsTr("前往主页")
+ color: socialHover.hovered ? Theme.accentInk : Theme.t1
+ font.family: Theme.fontUi
+ font.pixelSize: Theme.fsSmall
+ font.weight: Font.Medium
+ }
+ VIcon {
+ anchors.verticalCenter: parent.verticalCenter
+ name: "external"
+ size: 12
+ color: socialHover.hovered ? Theme.accentInk : Theme.t2
+ }
+ }
+ }
+ }
+ HoverHandler { id: socialHover; cursorShape: Qt.PointingHandCursor }
+ TapHandler { id: socialTap; onTapped: panel.openLink(slot.modelData.id) }
+ }
+ }
+ }
+ }
+
+ SectionTitle {
+ text: qsTr("请作者喝杯咖啡")
+ hint: qsTr("微信或支付宝扫码,金额随意")
+ }
+
+ // The two codes side by side at one size; a narrow window stacks them.
+ Flow {
+ id: codes
+ property real motionDy: 0
+ transform: Translate { y: codes.motionDy }
+ Layout.fillWidth: true
+ spacing: 14
+ Repeater {
+ model: [
+ { id: "wechat", label: qsTr("微信扫码") },
+ { id: "alipay", label: qsTr("支付宝扫码") }
+ ]
+ delegate: Rectangle {
+ id: code
+ required property var modelData
+ objectName: "sponsor-code-" + modelData.id
+ width: 244
+ // Both cards take the taller code's height (572x602) so the labels line up.
+ height: 12 + 232 + 46
+ radius: 16
+ color: Theme.card2
+ border.width: 1
+ border.color: Theme.stroke
+ Image {
+ id: qr
+ objectName: "sponsor-qr-" + code.modelData.id
+ x: 12; y: 12
+ width: 220
+ height: 232
+ source: "sponsor/" + code.modelData.id + ".png"
+ // Decoded at the shown size: the reader's smooth scaling keeps the
+ // modules crisp where a GPU-minified 572 px image would alias.
+ sourceSize.width: Math.ceil(220 * panel.dpr)
+ fillMode: Image.PreserveAspectFit
+ verticalAlignment: Image.AlignTop
+ smooth: true
+ }
+ Row {
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.bottom: parent.bottom
+ anchors.bottomMargin: 14
+ spacing: 7
+ Image {
+ anchors.verticalCenter: parent.verticalCenter
+ width: 18; height: 18
+ source: "sponsor/" + code.modelData.id + ".svg"
+ sourceSize.width: Math.ceil(18 * panel.dpr)
+ sourceSize.height: Math.ceil(18 * panel.dpr)
+ }
+ Text {
+ anchors.verticalCenter: parent.verticalCenter
+ text: code.modelData.label
+ color: Theme.t1
+ font.family: Theme.fontUi
+ font.pixelSize: 13
+ font.weight: Font.Medium
+ }
+ }
+ }
+ }
+ }
+
+ // 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
+ transform: Translate { y: thanks.motionDy }
+ Layout.fillWidth: true
+ Layout.topMargin: 6
+ text: qsTr("赞助完全自愿,不影响任何功能。谢谢你的支持!")
+ color: Theme.t3
+ font.family: Theme.fontUi
+ font.pixelSize: Theme.fsSmall
+ wrapMode: Text.WordWrap
+ }
+}
diff --git a/qml/Veyra/qmldir b/qml/Veyra/qmldir
index 744e7e59..856ad13b 100644
--- a/qml/Veyra/qmldir
+++ b/qml/Veyra/qmldir
@@ -43,3 +43,4 @@ NrLayerEditor 1.0 NrLayerEditor.qml
VSpinner 1.0 VSpinner.qml
VEqBars 1.0 VEqBars.qml
VTelemetryValue 1.0 VTelemetryValue.qml
+SponsorPanel 1.0 SponsorPanel.qml
diff --git a/qml/Veyra/sponsor/alipay.png b/qml/Veyra/sponsor/alipay.png
new file mode 100644
index 00000000..7fc4616d
Binary files /dev/null and b/qml/Veyra/sponsor/alipay.png differ
diff --git a/qml/Veyra/sponsor/alipay.svg b/qml/Veyra/sponsor/alipay.svg
new file mode 100644
index 00000000..00d04c3c
--- /dev/null
+++ b/qml/Veyra/sponsor/alipay.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#1677FF" d="M19.695 15.07c3.426 1.158 4.203 1.22 4.203 1.22V3.846c0-2.124-1.705-3.845-3.81-3.845H3.914C1.808.001.102 1.722.102 3.846v16.31c0 2.123 1.706 3.845 3.813 3.845h16.173c2.105 0 3.81-1.722 3.81-3.845v-.157s-6.19-2.602-9.315-4.119c-2.096 2.602-4.8 4.181-7.607 4.181-4.75 0-6.361-4.19-4.112-6.949.49-.602 1.324-1.175 2.617-1.497 2.025-.502 5.247.313 8.266 1.317a16.796 16.796 0 0 0 1.341-3.302H5.781v-.952h4.799V6.975H4.77v-.953h5.81V3.591s0-.409.411-.409h2.347v2.84h5.744v.951h-5.744v1.704h4.69a19.453 19.453 0 0 1-1.986 5.06c1.424.52 2.702 1.011 3.654 1.333m-13.81-2.032c-.596.06-1.71.325-2.321.869-1.83 1.608-.735 4.55 2.968 4.55 2.151 0 4.301-1.388 5.99-3.61-2.403-1.182-4.438-2.028-6.637-1.809"/></svg>
diff --git a/qml/Veyra/sponsor/bilibili.svg b/qml/Veyra/sponsor/bilibili.svg
new file mode 100644
index 00000000..6846cf40
--- /dev/null
+++ b/qml/Veyra/sponsor/bilibili.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><rect width="48" height="48" rx="12" fill="#00A1D6"/><g transform="translate(10 10) scale(1.1667)"><path fill="#FFFFFF" d="M17.813 4.653h.854c1.51.054 2.769.578 3.773 1.574 1.004.995 1.524 2.249 1.56 3.76v7.36c-.036 1.51-.556 2.769-1.56 3.773s-2.262 1.524-3.773 1.56H5.333c-1.51-.036-2.769-.556-3.773-1.56S.036 18.858 0 17.347v-7.36c.036-1.511.556-2.765 1.56-3.76 1.004-.996 2.262-1.52 3.773-1.574h.774l-1.174-1.12a1.234 1.234 0 0 1-.373-.906c0-.356.124-.658.373-.907l.027-.027c.267-.249.573-.373.92-.373.347 0 .653.124.92.373L9.653 4.44c.071.071.134.142.187.213h4.267a.836.836 0 0 1 .16-.213l2.853-2.747c.267-.249.573-.373.92-.373.347 0 .662.151.929.4.267.249.391.551.391.907 0 .355-.124.657-.373.906zM5.333 7.24c-.746.018-1.373.276-1.88.773-.506.498-.769 1.13-.786 1.894v7.52c.017.764.28 1.395.786 1.893.507.498 1.134.756 1.88.773h13.334c.746-.017 1.373-.275 1.88-.773.506-.498.769-1.129.786-1.893v-7.52c-.017-.765-.28-1.396-.786-1.894-.507-.497-1.134-.755-1.88-.773zM8 11.107c.373 0 .684.124.933.373.25.249.383.569.4.96v1.173c-.017.391-.15.711-.4.96-.249.25-.56.374-.933.374s-.684-.125-.933-.374c-.25-.249-.383-.569-.4-.96V12.44c0-.373.129-.689.386-.947.258-.257.574-.386.947-.386zm8 0c.373 0 .684.124.933.373.25.249.383.569.4.96v1.173c-.017.391-.15.711-.4.96-.249.25-.56.374-.933.374s-.684-.125-.933-.374c-.25-.249-.383-.569-.4-.96V12.44c.017-.391.15-.711.4-.96.249-.249.56-.373.933-.373Z"/></g></svg>
diff --git a/qml/Veyra/sponsor/douyin.svg b/qml/Veyra/sponsor/douyin.svg
new file mode 100644
index 00000000..81890f3c
--- /dev/null
+++ b/qml/Veyra/sponsor/douyin.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><rect x="0.5" y="0.5" width="47" height="47" rx="11.5" fill="#111111" stroke="#FFFFFF" stroke-opacity="0.16" stroke-width="1"/><g transform="translate(11 11) scale(1.0833)"><path fill="#25F4EE" transform="translate(-0.7 -0.7)" d="M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"/><path fill="#FE2C55" transform="translate(0.7 0.7)" d="M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"/><path fill="#FFFFFF" d="M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"/></g></svg>
diff --git a/qml/Veyra/sponsor/github.svg b/qml/Veyra/sponsor/github.svg
new file mode 100644
index 00000000..5505ae81
--- /dev/null
+++ b/qml/Veyra/sponsor/github.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><rect width="48" height="48" rx="12" fill="#F3F3F5"/><g transform="translate(10 10) scale(1.1667)"><path fill="#181717" d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></g></svg>
diff --git a/qml/Veyra/sponsor/kofi.svg b/qml/Veyra/sponsor/kofi.svg
new file mode 100644
index 00000000..244bbf8f
--- /dev/null
+++ b/qml/Veyra/sponsor/kofi.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><g transform="translate(4 4) scale(1.6667)"><path fill="#FFFFFF" stroke="#FFFFFF" stroke-width="3.2" stroke-linejoin="round" d="M11.351 2.715c-2.7 0 -4.986 0.025 -6.83 0.26C2.078 3.285 0 5.154 0 8.61c0 3.506 0.182 6.13 1.585 8.493c1.584 2.701 4.233 4.182 7.662 4.182h0.83c4.209 0 6.494 -2.234 7.637 -4a9.5 9.5 0 0 0 1.091 -2.338C21.792 14.688 24 12.22 24 9.208v-0.415c0 -3.247 -2.13 -5.507 -5.792 -5.87c-1.558 -0.156 -2.65 -0.208 -6.857 -0.208z"/><path fill="#202020" d="M11.351 2.715c-2.7 0 -4.986 0.025 -6.83 0.26C2.078 3.285 0 5.154 0 8.61c0 3.506 0.182 6.13 1.585 8.493c1.584 2.701 4.233 4.182 7.662 4.182h0.83c4.209 0 6.494 -2.234 7.637 -4a9.5 9.5 0 0 0 1.091 -2.338C21.792 14.688 24 12.22 24 9.208v-0.415c0 -3.247 -2.13 -5.507 -5.792 -5.87c-1.558 -0.156 -2.65 -0.208 -6.857 -0.208z"/><path fill="#FFFFFF" d="M11.351 4.662c4.208 0 5.09 0.052 6.571 0.182c2.624 0.311 4.13 1.584 4.13 4v0.39c0 2.156 -1.792 3.844 -3.87 3.844h-0.935l-0.156 0.649c-0.208 1.013 -0.597 1.818 -1.039 2.546c-0.909 1.428 -2.545 3.064 -5.922 3.064h-0.805c-2.571 0 -4.831 -0.883 -6.078 -3.195c-1.09 -2 -1.298 -4.155 -1.298 -7.506c0 -2.181 0.857 -3.402 3.012 -3.714c1.533 -0.233 3.559 -0.26 6.39 -0.26"/><path fill="#202020" d="M17.898 6.949c-0.416 0 -0.65 0.234 -0.65 0.546v2.935c0 0.311 0.234 0.545 0.65 0.545c1.324 0 2.051 -0.754 2.051 -2s-0.727 -2.026 -2.052 -2.026"/><path fill="#FF5A16" d="M7.507 7.131c-1.818 0 -3.013 1.48 -3.013 3.142c0 1.533 0.858 2.857 1.949 3.897c0.727 0.701 1.87 1.429 2.649 1.896a1.47 1.47 0 0 0 1.507 0c0.78 -0.467 1.922 -1.195 2.623 -1.896c1.117 -1.039 1.974 -2.364 1.974 -3.897c0 -1.662 -1.247 -3.142 -3.039 -3.142c-1.065 0 -1.792 0.545 -2.338 1.298c-0.493 -0.753 -1.246 -1.298 -2.312 -1.298"/></g></svg>
diff --git a/qml/Veyra/sponsor/wechat.png b/qml/Veyra/sponsor/wechat.png
new file mode 100644
index 00000000..cf62b1f4
Binary files /dev/null and b/qml/Veyra/sponsor/wechat.png differ
diff --git a/qml/Veyra/sponsor/wechat.svg b/qml/Veyra/sponsor/wechat.svg
new file mode 100644
index 00000000..49686275
--- /dev/null
+++ b/qml/Veyra/sponsor/wechat.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#07C160" d="M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.582.582 0 0 1-.023-.156.49.49 0 0 1 .201-.398C23.024 18.48 24 16.82 24 14.98c0-3.21-2.931-5.837-6.656-6.088V8.89c-.135-.01-.27-.027-.407-.03zm-2.53 3.274c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.97-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982z"/></svg>
diff --git a/qml/Veyra/sponsor/x.svg b/qml/Veyra/sponsor/x.svg
new file mode 100644
index 00000000..8cb47d27
--- /dev/null
+++ b/qml/Veyra/sponsor/x.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><rect x="0.5" y="0.5" width="47" height="47" rx="11.5" fill="#000000" stroke="#FFFFFF" stroke-opacity="0.16" stroke-width="1"/><g transform="translate(13 13) scale(0.9167)"><path fill="#FFFFFF" d="M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"/></g></svg>
diff --git a/qml/Veyra/sponsor/youtube.svg b/qml/Veyra/sponsor/youtube.svg
new file mode 100644
index 00000000..1397e3aa
--- /dev/null
+++ b/qml/Veyra/sponsor/youtube.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><rect width="48" height="48" rx="12" fill="#FF0000"/><g transform="translate(10 10) scale(1.1667)"><path fill="#FFFFFF" d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/></g></svg>
diff --git a/scripts/acceptance/sponsor-gui.py b/scripts/acceptance/sponsor-gui.py
new file mode 100644
index 00000000..f3fa100c
--- /dev/null
+++ b/scripts/acceptance/sponsor-gui.py
@@ -0,0 +1,141 @@
+"""Sponsor page in the real app (2026-10-19): the home coffee line, 设置 → 赞助作者, every link.
+
+usage: py -3.11 -B scripts/acceptance/sponsor-gui.py APP [one]
+
+APP is a staged app whose executable and qml/Veyra come from this build. Per case
+(language, window size, scale) the app runs with a private profile and a private copy
+of Main.qml that loads sponsor-gui.qml (restored afterwards). That QML prints window
+pixel points; this script posts the clicks to the window (the user's cursor never
+moves), so the real TapHandlers receive them. VEYRA_TEST_SPONSOR_NO_BROWSER makes the
+bridge log each address instead of opening a browser: the log must name all six pages
+in click order. Each code card is saved as shown and its QR must decode to the same
+payment code as the bundled image (payloads are compared, never printed).
+"""
+from pathlib import Path
+import ctypes, ctypes.wintypes as wt, json, os, re, subprocess, sys, threading, time
+import cv2
+import numpy as np
+from PIL import Image
+
+ROOT = Path(__file__).resolve().parents[2]
+BASE = Path('E:/项目/Veyra'); TASK = 'claude-sponsor-20261019'
+APP = Path(sys.argv[1])
+LOG = BASE / 'logs' / TASK / ('gui-' + time.strftime('%Y%m%d-%H%M%S')); LOG.mkdir(parents=True)
+LINKS = [('bilibili', 'https://space.bilibili.com/1950053'), ('douyin', 'https://v.douyin.com/9s06Bf2Inqc/'),
+ ('x', 'https://x.com/likely2002'), ('github', 'https://github.com/Likely7'),
+ ('youtube', 'https://www.youtube.com/@Likely7Ai'), ('kofi', 'https://ko-fi.com/likely7')]
+user32 = ctypes.windll.user32
+detector = cv2.QRCodeDetector()
+
+
+def main_window(pid):
+ found = []
+ @ctypes.WINFUNCTYPE(wt.BOOL, wt.HWND, wt.LPARAM)
+ def each(h, _):
+ owner = wt.DWORD(); user32.GetWindowThreadProcessId(h, ctypes.byref(owner))
+ if owner.value == pid and user32.IsWindowVisible(h):
+ r = wt.RECT(); user32.GetWindowRect(h, ctypes.byref(r))
+ found.append((h, (r.right - r.left) * (r.bottom - r.top)))
+ return True
+ user32.EnumWindows(each, 0)
+ return max(found, key=lambda f: f[1])[0] if found else None
+
+
+def click(hwnd, x, y):
+ at = (y << 16) | (x & 0xFFFF)
+ user32.PostMessageW(hwnd, 0x0200, 0, at) # WM_MOUSEMOVE
+ time.sleep(0.15)
+ user32.PostMessageW(hwnd, 0x0201, 1, at) # WM_LBUTTONDOWN
+ time.sleep(0.06)
+ user32.PostMessageW(hwnd, 0x0202, 0, at) # WM_LBUTTONUP
+
+
+def code(path):
+ if not path.exists():
+ return ''
+ image = cv2.cvtColor(np.array(Image.open(path).convert('RGB')), cv2.COLOR_RGB2BGR)
+ return detector.detectAndDecode(image)[0]
+
+
+expected = {n: code(ROOT / 'qml/Veyra/sponsor' / f'{n}.png') for n in ('wechat', 'alipay')}
+assert all(expected.values())
+for proc in subprocess.run(['tasklist', '/fo', 'csv', '/nh'], capture_output=True, text=True).stdout.splitlines():
+ assert not proc.lower().startswith('"veyra'), 'another Veyra is running: ' + proc
+
+main = APP / 'qml/Veyra/Main.qml'
+saved = main.read_bytes()
+# The last case draws the interface with Qt's software renderer (OBS 游戏捕获兼容, the same
+# path as the RTSS / overlay compatibility mode).
+cases = [('zh-CN', 1280, 900, '1', False), ('en', 1280, 900, '1', False), ('ja', 900, 800, '1', False),
+ ('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]
+results = []
+try:
+ for language, width, height, scale, software in cases:
+ name = f'{language}-{width}-{scale}' + ('-software' if software else '')
+ evidence = LOG / name; evidence.mkdir()
+ tmp = BASE / 'tmp' / TASK / LOG.name / name; tmp.mkdir(parents=True)
+ profile = BASE / 'tests' / TASK / 'profiles' / LOG.name / name; profile.mkdir(parents=True)
+ (profile / 'qml-preferences.v1.json').write_text(json.dumps({
+ 'language': language, 'autoResume': False, 'rememberPosition': False, 'prewarmEnhancement': False,
+ 'gpuPriority': 'normal', 'subtitleEnabled': False, 'obsGameCapture': software}), encoding='utf8')
+ env = {k: v for k, v in os.environ.items() if not k.upper().startswith(('VEYRA_', 'QT_', 'QSG_'))}
+ env.update(PATH=str(APP) + os.pathsep + env['PATH'], TEMP=str(tmp), TMP=str(tmp), CUDA_CACHE_PATH=str(tmp / 'cuda'),
+ QML_DISK_CACHE_PATH=str(tmp / 'qml-cache'), QT_FORCE_STDERR_LOGGING='1', QT_SCALE_FACTOR=scale,
+ VEYRA_LOG_FILE=str(evidence / 'engine.log'), VEYRA_TEST_SPONSOR_NO_BROWSER='1')
+ loader = ('\nLoader { source: ' + json.dumps((ROOT / 'scripts/acceptance/sponsor-gui.qml').as_uri())
+ + '; onLoaded: { item.appRoot = root; item.settings = settingsPage; item.evidence = '
+ + json.dumps(evidence.as_posix(), ensure_ascii=False) + ' } }\n')
+ text = saved.decode('utf8'); at = text.rfind('}'); assert at > 0
+ main.write_bytes((text[:at] + loader + text[at:]).encode('utf8'))
+ command = [str(APP / 'veyra_qml_ui.exe'), '--data-dir', str(profile), '--page', 'home', '--size', f'{width}x{height}',
+ '--exit-after', '90000']
+ began = time.monotonic(); clicks = []
+ proc = subprocess.Popen(command, cwd=APP, env=env, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ console = []
+
+ def read():
+ for raw in proc.stdout:
+ line = raw.decode('utf8', errors='replace').rstrip()
+ console.append(line)
+ m = re.search(r'SPONSOR_UI_CLICK (\w+) (-?\d+) (-?\d+)', line)
+ if m:
+ hwnd = main_window(proc.pid)
+ clicks.append(m.group(1))
+ if hwnd: click(hwnd, int(m.group(2)), int(m.group(3)))
+ reader = threading.Thread(target=read, daemon=True); reader.start()
+ try:
+ proc.wait(timeout=120)
+ except subprocess.TimeoutExpired:
+ proc.kill(); proc.wait()
+ reader.join(5)
+ (evidence / 'console.log').write_text('\n'.join(console), encoding='utf8')
+ engine = (evidence / 'engine.log').read_text(encoding='utf8', errors='replace') if (evidence / 'engine.log').exists() else ''
+ errors = [l for l in console if re.search(r'SPONSOR_UI_FAIL|ReferenceError:|TypeError:|Binding loop|Cannot assign|'
+ r'(Sponsor\w*|HomePage|SettingsPage|Main)\.qml:\d+', l)]
+ opened = re.findall(r'test url (\S+)', engine)
+ checks = {
+ 'pass marker': any('SPONSOR_UI_PASS' in l for l in console),
+ 'no qml errors': not errors,
+ 'clicks in order': clicks == ['home'] + [n for n, _ in LINKS] + ['about'],
+ 'home link logged': 'home link' in engine,
+ 'six pages in order': opened == [u for _, u in LINKS],
+ 'codes decode as shown': all(code(evidence / f'code-{n}.png') == v for n, v in expected.items()),
+ 'interface renderer': ('software UI' in engine) == software,
+ }
+ row = {'case': name, 'exit': proc.returncode, 'seconds': round(time.monotonic() - began, 1), 'checks': checks,
+ 'passed': all(checks.values()), 'errors': errors[:20], 'clicks': clicks, 'opened': opened, 'profile': str(profile),
+ 'events': [l for l in console if 'SPONSOR_UI_' in l]}
+ results.append(row)
+ print(json.dumps({k: row[k] for k in ('case', 'exit', 'seconds', 'checks', 'passed')}, ensure_ascii=False), flush=True)
+ if not row['passed']:
+ print('\n'.join(row['errors'] + [l for l in console if 'SPONSOR_UI_FAIL' in l]), flush=True)
+ break
+finally:
+ main.write_bytes(saved)
+receipt = {'app': str(APP), 'head': subprocess.run(['git', '-C', str(ROOT), 'rev-parse', 'HEAD'], capture_output=True, text=True).stdout.strip(),
+ 'results': results, 'passed': len(results) == len(cases) and all(r['passed'] for r in results)}
+(LOG / 'receipt.json').write_text(json.dumps(receipt, ensure_ascii=False, indent=1), encoding='utf8')
+print('SPONSOR GUI', 'PASS' if receipt['passed'] else 'FAIL', LOG, flush=True)
+raise SystemExit(not receipt['passed'])
diff --git a/scripts/acceptance/sponsor-gui.qml b/scripts/acceptance/sponsor-gui.qml
new file mode 100644
index 00000000..b0463376
--- /dev/null
+++ b/scripts/acceptance/sponsor-gui.qml
@@ -0,0 +1,144 @@
+// Loaded into a private copy of Main.qml by sponsor-gui.py. Walks the home page's
+// coffee line, 设置 → 赞助作者 and 关于 → 赞助作者 with real clicks: it prints
+// "SPONSOR_UI_CLICK <name> <x> <y>" (window pixels) and the script posts the click to
+// the window. Checks that nothing overflows its card in the current language and
+// saves the home page, the settings page, the whole panel and each code card as images.
+import QtQuick
+import QtQuick.Window
+Item {
+ id: test
+ property var appRoot // Main's window
+ property var settings // the SettingsPage
+ property string evidence: ""
+ property int step: 0
+ property int ticks: 0
+ property int waitUntil: 0
+ property int linkIndex: 0
+ property bool saving: false
+ readonly property var links: ["bilibili", "douyin", "x", "github", "youtube", "kofi"]
+ function require(ok, message) {
+ if (!ok) throw new Error(message)
+ console.log("SPONSOR_UI_CHECK", message)
+ }
+ function window() { return test.Window.window.contentItem }
+ function find(item, name) {
+ if (!item) return null
+ if (item.objectName === name) return item
+ for (let i = 0; i < item.children.length; ++i) { const r = find(item.children[i], name); if (r) return r }
+ return null
+ }
+ function texts(item, out) {
+ if (item instanceof Text && item.visible && item.text.length > 0) out.push(item)
+ for (let i = 0; i < item.children.length; ++i) if (item.children[i].visible) texts(item.children[i], out)
+ return out
+ }
+ // Every visible text of `box` lies inside it (2 px slack for antialiased edges).
+ function fits(box, what) {
+ for (const t of texts(box, [])) {
+ const p = t.mapToItem(box, 0, 0)
+ const w = Math.min(t.width, t.implicitWidth)
+ test.require(p.x >= -2 && p.x + w <= box.width + 2, what + ": \"" + t.text + "\" fits (" + Math.round(p.x) + "+" + Math.round(w) + " in " + Math.round(box.width) + ")")
+ }
+ }
+ function click(name, item, x, y) {
+ const p = item.mapToItem(test.window(), x, y)
+ const dpr = Screen.devicePixelRatio
+ console.log("SPONSOR_UI_CLICK", name, Math.round(p.x * dpr), Math.round(p.y * dpr))
+ }
+ function shot(item, name, next) {
+ test.saving = true
+ item.grabToImage(r => { test.require(r.saveToFile(test.evidence + "/" + name + ".png"), "saved " + name); test.saving = false; test.step = next })
+ }
+ // Scroll the settings body so `item` is in view before it is clicked.
+ function reveal(item) {
+ let flick = item.parent
+ while (flick && flick.contentY === undefined) flick = flick.parent
+ if (!flick) return
+ const y = item.mapToItem(flick.contentItem, 0, 0).y - 40
+ flick.contentY = Math.max(0, Math.min(y, Math.max(0, flick.contentHeight - flick.height)))
+ }
+ Timer {
+ interval: 300; repeat: true; running: true
+ onTriggered: { try {
+ if (++test.ticks > 200) throw new Error("deadline step=" + test.step)
+ if (test.saving || test.ticks < test.waitUntil) return
+ const root = test.appRoot
+ if (test.step === 0) {
+ if (test.ticks < 8) return
+ test.require(root.page === "home", "the app opens on the home page")
+ const line = test.find(test.window(), "home-sponsor")
+ test.require(line && line.visible, "the home page shows the coffee line")
+ const p = line.mapToItem(test.window(), 0, 0)
+ test.require(p.x >= 16 && p.x + line.width <= test.window().width - 16, "the coffee line fits the window (" + Math.round(line.width) + " of " + Math.round(test.window().width) + ")")
+ test.shot(test.window(), "home", 1); return
+ }
+ if (test.step === 1) {
+ const line = test.find(test.window(), "home-sponsor")
+ // On the link words at the line's right end, where a user aims.
+ test.click("home", line, line.width - 30, line.height / 2)
+ test.waitUntil = test.ticks + 6; test.step = 2; return
+ }
+ if (test.step === 2) {
+ test.require(root.page === "set", "the coffee line opens 设置")
+ test.require(test.settings.section === "sponsor", "on the 赞助作者 section")
+ const panel = test.find(test.window(), "set-sponsor")
+ test.require(panel && panel.visible && panel.height > 600, "the sponsor panel shows")
+ for (const id of test.links) test.fits(test.find(panel, "sponsor-link-" + id), id + " card")
+ for (const id of ["wechat", "alipay"]) {
+ test.fits(test.find(panel, "sponsor-code-" + id), id + " code")
+ test.require(test.find(panel, "sponsor-qr-" + id).status === Image.Ready, id + " code loaded")
+ }
+ test.fits(panel, "sponsor panel")
+ test.waitUntil = test.ticks + 2
+ test.shot(test.window(), "settings", 3); return
+ }
+ if (test.step === 3) {
+ test.shot(test.find(test.window(), "set-sponsor"), "panel", 31); return
+ }
+ // Each code card on its own, for the script to decode.
+ if (test.step === 31 || test.step === 32) {
+ const id = test.step === 31 ? "wechat" : "alipay"
+ test.shot(test.find(test.window(), "sponsor-code-" + id), "code-" + id, test.step === 31 ? 32 : 4); return
+ }
+ if (test.step === 4) {
+ // Every card and the Ko-fi button, one click each.
+ const panel = test.find(test.window(), "set-sponsor")
+ const card = test.find(panel, "sponsor-link-" + test.links[test.linkIndex])
+ test.reveal(card)
+ test.waitUntil = test.ticks + 2; test.step = 5; return
+ }
+ if (test.step === 5) {
+ const card = test.find(test.find(test.window(), "set-sponsor"), "sponsor-link-" + test.links[test.linkIndex])
+ test.click(test.links[test.linkIndex], card, card.width / 2, card.height - 22)
+ test.waitUntil = test.ticks + 4
+ test.step = ++test.linkIndex < test.links.length ? 4 : 6; return
+ }
+ if (test.step === 6) {
+ test.require(root.page === "set" && test.settings.section === "sponsor", "the links leave the page where it was")
+ test.settings.section = "about"
+ test.waitUntil = test.ticks + 4; test.step = 7; return
+ }
+ if (test.step === 7) {
+ const button = test.find(test.window(), "about-sponsor")
+ test.require(button && button.visible, "关于 offers 赞助作者")
+ test.reveal(button)
+ test.waitUntil = test.ticks + 2; test.step = 8; return
+ }
+ if (test.step === 8) {
+ const button = test.find(test.window(), "about-sponsor")
+ test.click("about", button, button.width / 2, button.height / 2)
+ test.waitUntil = test.ticks + 4; test.step = 9; return
+ }
+ if (test.step === 9) {
+ test.require(test.settings.section === "sponsor", "关于 → 前往 opens 赞助作者")
+ console.log("SPONSOR_UI_PASS")
+ test.step = 10
+ Qt.quit()
+ }
+ } catch (e) {
+ console.log("SPONSOR_UI_FAIL", e.message)
+ test.step = 99
+ Qt.quit()
+ } }
+ }
+}
diff --git a/src/ui/QmlPlayerBridge.cpp b/src/ui/QmlPlayerBridge.cpp
index f4c79af7..9db9a305 100644
--- a/src/ui/QmlPlayerBridge.cpp
+++ b/src/ui/QmlPlayerBridge.cpp
@@ -2261,9 +2261,9 @@ QVariantList QmlPlayerBridge::readComponentList() const {
}
void QmlPlayerBridge::openProjectPage() {
- // Nothing here launches a browser: opening an external URL is an outward-facing
- // action, and it is not wired to a verified destination yet. The UI says so.
- emit notice(tr("打开项目页面尚未接入"), true);
+ // 关于 → 交流群: the group QR codes are kept current in the project README.
+ if (!QDesktopServices::openUrl(QUrl(QStringLiteral("https://github.com/Likely7/Veyra-NRVideo#readme"))))
+ emit notice(tr("无法打开浏览器"), true);
}
void QmlPlayerBridge::copyDiagnostics() {
@@ -6654,6 +6654,32 @@ void QmlPlayerBridge::openFeedbackPage() {
void QmlPlayerBridge::openReleasesPage() {
QDesktopServices::openUrl(QUrl(QStringLiteral("https://github.com/Likely7/Veyra-NRVideo/releases")));
}
+bool QmlPlayerBridge::openSponsorLink(const QString& id) {
+ // The author's pages as the author gave them (2026-10-19); the page shows buttons,
+ // never these addresses.
+ static constexpr std::pair<const char*, const char*> links[] = {
+ {"bilibili", "https://space.bilibili.com/1950053"},
+ {"douyin", "https://v.douyin.com/9s06Bf2Inqc/"},
+ {"x", "https://x.com/likely2002"},
+ {"github", "https://github.com/Likely7"},
+ {"youtube", "https://www.youtube.com/@Likely7Ai"},
+ {"kofi", "https://ko-fi.com/likely7"},
+ };
+ for (const auto& [name, url] : links) {
+ if (id != QLatin1StringView(name)) continue;
+ veyra::log::info("ui-sponsor", std::format("open {}", name));
+ // Acceptance runs click every card: they read the address from the log
+ // instead of opening a browser on the test machine.
+ if (qEnvironmentVariableIsSet("VEYRA_TEST_SPONSOR_NO_BROWSER")) {
+ veyra::log::info("ui-sponsor", std::format("test url {}", url));
+ return true;
+ }
+ if (QDesktopServices::openUrl(QUrl(QString::fromLatin1(url)))) return true;
+ emit notice(tr("无法打开浏览器"), true);
+ return false;
+ }
+ return false;
+}
QObject* QmlPlayerBridge::updates() const { return updates_; }
bool QmlPlayerBridge::eventFilter(QObject* watched, QEvent* event) {
const auto type = event->type();
diff --git a/tests/qml/quick/tst_sponsor_panel.qml b/tests/qml/quick/tst_sponsor_panel.qml
new file mode 100644
index 00000000..cde74760
--- /dev/null
+++ b/tests/qml/quick/tst_sponsor_panel.qml
@@ -0,0 +1,58 @@
+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).
+Item {
+ width: 760; height: 1000
+ SponsorPanel { id: panel; width: 720 }
+ SignalSpy { id: opened; target: panel; signalName: "openLink" }
+ TestCase {
+ name: "SponsorPanel"
+ when: windowShown
+ function cleanup() { opened.clear() }
+ // The panel's own images (a VIcon also holds one for the software renderer).
+ function images(item, out) {
+ if (item instanceof Image && item.objectName !== "software-icon-image") out.push(item)
+ for (let i = 0; i < item.children.length; ++i) images(item.children[i], out)
+ return out
+ }
+ function test_cardsOpenTheirPage() {
+ const ids = ["bilibili", "douyin", "x", "github", "youtube", "kofi"]
+ for (let i = 0; i < ids.length; ++i) {
+ const card = findChild(panel, "sponsor-link-" + ids[i])
+ verify(card, ids[i])
+ // On 前往主页 (or the Ko-fi button's text): the whole card is the button.
+ mouseClick(card, card.width / 2, card.height - 22)
+ compare(opened.count, i + 1, ids[i])
+ compare(opened.signalArguments[i][0], ids[i])
+ }
+ }
+ function test_assetsLoad() {
+ const all = images(panel, [])
+ // Five tiles, two payment marks, two codes and the Ko-fi cup.
+ compare(all.length, 10)
+ for (const image of all) {
+ tryCompare(image, "status", Image.Ready, 3000, image.source)
+ verify(image.paintedWidth > 0, image.source)
+ }
+ for (const id of ["wechat", "alipay"]) {
+ const code = findChild(panel, "sponsor-qr-" + id)
+ // Shown 220 px wide: large enough for a phone to read.
+ compare(Math.round(code.paintedWidth), 220, id)
+ }
+ }
+ function test_narrowWraps() {
+ panel.width = 410
+ wait(50)
+ const first = findChild(panel, "sponsor-link-bilibili"), last = findChild(panel, "sponsor-link-youtube")
+ verify(last.mapToItem(panel, 0, 0).y > first.mapToItem(panel, 0, 0).y, "cards wrap onto a second row")
+ const wechat = findChild(panel, "sponsor-code-wechat"), alipay = findChild(panel, "sponsor-code-alipay")
+ verify(alipay.mapToItem(panel, 0, 0).y > wechat.mapToItem(panel, 0, 0).y, "codes stack")
+ for (const item of [last, alipay])
+ verify(item.mapToItem(panel, item.width, 0).x <= panel.width + 0.5, item.objectName + " stays inside")
+ panel.width = 720
+ }
+ }
+}
diff --git a/tools/qt_probe/make-sponsor-icons.py b/tools/qt_probe/make-sponsor-icons.py
new file mode 100644
index 00000000..75c51177
--- /dev/null
+++ b/tools/qt_probe/make-sponsor-icons.py
@@ -0,0 +1,127 @@
+# The sponsor page's brand icons: qml/Veyra/sponsor/*.svg from Simple Icons glyphs.
+#
+# usage: python -B tools/qt_probe/make-sponsor-icons.py [SIMPLE_ICONS_DIR]
+#
+# SIMPLE_ICONS_DIR is the npm package simple-icons 16.34.0 (CC0-1.0), unpacked so that
+# icons/<slug>.svg exists; see THIRD_PARTY_NOTICES.md. Each glyph is a single 24x24
+# path. The page shows them as app-style tiles in the brand colour (a white glyph on
+# the colour, or the colour on a light tile), and two of them in their own colours:
+# Douyin's note with its cyan and red offsets, and Ko-fi's cup as its official button
+# draws it (white cup, dark outline, red heart, white sticker edge).
+import pathlib, re, sys
+
+root = pathlib.Path(__file__).resolve().parents[2]
+icons = pathlib.Path(sys.argv[1] if len(sys.argv) > 1 else
+ "E:/项目/Veyra/deps/claude-sponsor-20261019/simple-icons-16.34.0") / "icons"
+out = root / "qml/Veyra/sponsor"
+out.mkdir(parents=True, exist_ok=True)
+
+
+def glyph(slug):
+ svg = (icons / f"{slug}.svg").read_text(encoding="utf-8")
+ paths = re.findall(r'<path d="([^"]+)"', svg)
+ if len(paths) != 1 or 'viewBox="0 0 24 24"' not in svg:
+ sys.exit(f"{slug}: expected one path in a 24x24 viewBox")
+ return paths[0]
+
+
+TOKEN = re.compile(r"[MmZzLlHhVvCcSsQqTtAa]|[-+]?(?:\d*\.\d+|\d+\.?\d*)(?:[eE][-+]?\d+)?")
+ARGS = {"M": 2, "L": 2, "H": 1, "V": 1, "C": 6, "S": 4, "Q": 4, "T": 2, "A": 7, "Z": 0}
+
+
+def num(v):
+ return f"{v:.4f}".rstrip("0").rstrip(".")
+
+
+def subpaths(d):
+ """Split path data into subpaths that each start with an absolute M.
+
+ A relative m continues from the previous subpath's end point, so a subpath cut
+ out of the middle of a path needs its start made absolute to draw on its own.
+ """
+ tokens = TOKEN.findall(d)
+ segments, i, command = [], 0, None
+ while i < len(tokens):
+ if tokens[i].isalpha():
+ command = tokens[i]
+ i += 1
+ if command in "Zz":
+ segments.append((command, []))
+ continue
+ n = ARGS[command.upper()]
+ args = [float(t) for t in tokens[i:i + n]]
+ if len(args) != n:
+ sys.exit("truncated path data")
+ i += n
+ segments.append((command, args))
+ if command in "Mm": # further pairs after a moveto are line segments
+ command = "L" if command == "M" else "l"
+ out, x, y, sx, sy = [], 0.0, 0.0, 0.0, 0.0
+ for command, args in segments:
+ rel = command.islower()
+ kind = command.upper()
+ if kind == "M":
+ x, y = (x + args[0], y + args[1]) if rel else (args[0], args[1])
+ sx, sy = x, y
+ out.append([f"M{num(x)} {num(y)}"])
+ continue
+ out[-1].append(command + " ".join(num(a) for a in args))
+ if kind == "Z":
+ x, y = sx, sy
+ elif kind == "H":
+ x = x + args[0] if rel else args[0]
+ elif kind == "V":
+ y = y + args[0] if rel else args[0]
+ else:
+ ex, ey = args[-2], args[-1]
+ x, y = (x + ex, y + ey) if rel else (ex, ey)
+ return ["".join(parts) for parts in out]
+
+
+def tile(fill, body, edge=False):
+ """A 48x48 rounded tile; `edge` outlines dark tiles so they read on dark cards."""
+ stroke = ' stroke="#FFFFFF" stroke-opacity="0.16" stroke-width="1"' if edge else ""
+ rect = (f'<rect x="0.5" y="0.5" width="47" height="47" rx="11.5" fill="{fill}"{stroke}/>' if edge
+ else f'<rect width="48" height="48" rx="12" fill="{fill}"/>')
+ return rect + body
+
+
+def placed(size, body):
+ """A 24x24 glyph drawn `size` units wide in the middle of the 48x48 tile."""
+ offset = (48 - size) / 2
+ return f'<g transform="translate({num(offset)} {num(offset)}) scale({num(size / 24)})">{body}</g>'
+
+
+def write(name, body, view=48):
+ svg = (f'<svg xmlns="http://www.w3.org/2000/svg" width="{view}" height="{view}" '
+ f'viewBox="0 0 {view} {view}">{body}</svg>\n')
+ (out / f"{name}.svg").write_text(svg, encoding="utf-8")
+ print("wrote", name)
+
+
+bilibili, tiktok, x, github, youtube, kofi = (glyph(s) for s in ("bilibili", "tiktok", "x", "github", "youtube", "kofi"))
+wechat, alipay = glyph("wechat"), glyph("alipay")
+
+write("bilibili", tile("#00A1D6", placed(28, f'<path fill="#FFFFFF" d="{bilibili}"/>')))
+# Douyin uses the same note as TikTok: white, with cyan up-left and red down-right.
+write("douyin", tile("#111111", placed(26,
+ f'<path fill="#25F4EE" transform="translate(-0.7 -0.7)" d="{tiktok}"/>'
+ f'<path fill="#FE2C55" transform="translate(0.7 0.7)" d="{tiktok}"/>'
+ f'<path fill="#FFFFFF" d="{tiktok}"/>'), edge=True))
+write("x", tile("#000000", placed(22, f'<path fill="#FFFFFF" d="{x}"/>'), edge=True))
+write("github", tile("#F3F3F5", placed(28, f'<path fill="#181717" d="{github}"/>')))
+# The play triangle is a hole in the glyph: it shows the red tile through the white.
+write("youtube", tile("#FF0000", placed(28, f'<path fill="#FFFFFF" d="{youtube}"/>')))
+# Payment labels: the glyph alone in its colour, 24x24.
+write("wechat", f'<path fill="#07C160" d="{wechat}"/>', view=24)
+write("alipay", f'<path fill="#1677FF" d="{alipay}"/>', view=24)
+
+# Ko-fi: outer silhouette, cup inside, handle centre, heart (in that order in the glyph).
+outer, inside, handle, heart = subpaths(kofi)
+outer += "" if outer.endswith(("z", "Z")) else "z" # closed, so the white edge has no seam
+write("kofi", placed(40,
+ f'<path fill="#FFFFFF" stroke="#FFFFFF" stroke-width="3.2" stroke-linejoin="round" d="{outer}"/>'
+ f'<path fill="#202020" d="{outer}"/>'
+ f'<path fill="#FFFFFF" d="{inside}"/>'
+ f'<path fill="#202020" d="{handle}"/>'
+ f'<path fill="#FF5A16" d="{heart}"/>'))