WinAppSDK 1.8.5 introduces a first-party TitleBar control with TitleBar.IconSource, replacing the current custom title-bar plumbing based on ExtendsContentIntoTitleBar = true + manual drag-region handling in MainWindow.xaml(.cs). See microsoft/PowerToys PR # 45532 for the pattern.
The project currently references Microsoft.WindowsAppSDK version 1.6.250602001 (see windows/Ghostty/Ghostty.csproj). A version bump unlocks several simplifications:
- Delete roughly 150 lines of custom title-bar / drag-region code in
MainWindow.xaml(.cs).
- Move the
AppIconBadge placement from the tab-host subtrees into TitleBar.IconSource, eliminating the dual-instance pattern introduced by the windows-branding work.
- Gain access to other 1.8 improvements (Mica tint fixes, input routing).
Risk: WinAppSDK major/minor bumps often require CsWinRT regeneration and may surface new trim/AOT warnings. Budget a dedicated PR.
WinAppSDK 1.8.5 introduces a first-party
TitleBarcontrol withTitleBar.IconSource, replacing the current custom title-bar plumbing based onExtendsContentIntoTitleBar = true+ manual drag-region handling inMainWindow.xaml(.cs). Seemicrosoft/PowerToysPR # 45532 for the pattern.The project currently references
Microsoft.WindowsAppSDKversion1.6.250602001(seewindows/Ghostty/Ghostty.csproj). A version bump unlocks several simplifications:MainWindow.xaml(.cs).AppIconBadgeplacement from the tab-host subtrees intoTitleBar.IconSource, eliminating the dual-instance pattern introduced by the windows-branding work.Risk: WinAppSDK major/minor bumps often require CsWinRT regeneration and may surface new trim/AOT warnings. Budget a dedicated PR.