feat: 为主窗口标题栏添加类 WinUI-Subtile 副标题组件实现 - #668
Open
Aegisir wants to merge 2 commits into
Open
Conversation
Owner
|
可以看看社区投票喜不喜欢此样式 |
XiaoYouChR
force-pushed
the
main
branch
7 times, most recently
from
July 31, 2026 11:11
a1e3825 to
bb5e21d
Compare
XiaoYouChR
force-pushed
the
main
branch
6 times, most recently
from
August 14, 2026 19:32
93d14e1 to
9e065d9
Compare
|
好看,我爱了 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 描述
为桌面端主窗口标题栏添加 WinUI 3 风格的 Subtitle 用于在应用标题右侧显示当前版本号
app.config.constants.VERSION作为唯一版本来源PR 类型
PR 检查清单
备注
WinUI 对 Subtitle 用途的声明
Microsoft 在
TitleBar.SubtitleAPI 文档中声明,Subtitle 显示在标题右侧,通常用于显示版本相关信息,例如Preview&Beta本 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