Skip to content

feat: 为主窗口标题栏添加类 WinUI-Subtile 副标题组件实现 - #668

Open
Aegisir wants to merge 2 commits into
XiaoYouChR:mainfrom
Aegisir:main
Open

feat: 为主窗口标题栏添加类 WinUI-Subtile 副标题组件实现#668
Aegisir wants to merge 2 commits into
XiaoYouChR:mainfrom
Aegisir:main

Conversation

@Aegisir

@Aegisir Aegisir commented Jul 28, 2026

Copy link
Copy Markdown
Contributor
image_359

PR 描述

为桌面端主窗口标题栏添加 WinUI 3 风格的 Subtitle 用于在应用标题右侧显示当前版本号

  • 使用 app.config.constants.VERSION 作为唯一版本来源

PR 类型

  • 功能

PR 检查清单

  • 应用成功启动且测试无 Bug
  • 包含破坏式更新

备注

WinUI 对 Subtitle 用途的声明

Microsoft 在 TitleBar.Subtitle API 文档中声明,Subtitle 显示在标题右侧,通常用于显示版本相关信息,例如 PreviewBeta 本 PR 遵循该语义,将其用于显示 Ghost Downloader 当前版本号

参考

[TitleBar.Subtitle API]:https://learn.microsoft.com/en-us/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.titlebar.subtitle

[WinUI TitleBar 功能规范]:https://github.com/microsoft/microsoft-ui-xaml/blob/main/specs/TitleBar/titlebar-functional-spec.md

[WinUI 通用文字颜色资源]:https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/CommonStyles/Common_themeresources_any.xaml

@XiaoYouChR

Copy link
Copy Markdown
Owner

可以看看社区投票喜不喜欢此样式

@XiaoYouChR
XiaoYouChR force-pushed the main branch 7 times, most recently from a1e3825 to bb5e21d Compare July 31, 2026 11:11
@XiaoYouChR
XiaoYouChR force-pushed the main branch 6 times, most recently from 93d14e1 to 9e065d9 Compare August 14, 2026 19:32
@XliaiyAwA

Copy link
Copy Markdown

好看,我爱了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants