Repository navigation
refactor!: Move Microsoft.UI.Colors to Uno.WinRT - #24773
Conversation
|
Claude finished @MartinZikmund's task in 4m 43s —— View job Review complete ✅Todo list
Verdict: ship (with a trivial nit) Issues found: 1 minor
What I verified:
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24773/wasm-skia-net9/index.html |
|
The build 235949 found UI Test snapshots differences: Details
|
|
Claude finished @MartinZikmund's task in 4m 35s —— View job Review completeTodo list
Verdict: ship, with one carried-over nit and one new dead-code finding to consider (neither blocks merge). Issues found: 2 minor, 0 blocking
Not actionable (repeated CodeQL bot comments): the What else I verified:
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24773/wasm-skia-net9/index.html |
|
The build 235967 found UI Test snapshots differences: Details
|
|
Claude finished @MartinZikmund's task in 54s —— View job Review completeTodo list
Verdict: ship ✅ (already approved by @Xiaoy312) Issues found: 0 — both previously flagged nits are resolved by commit
I re-searched the full source tree for any remaining No new issues introduced by this commit. Nothing further to flag. |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24773/wasm-skia-net9/index.html |
|
The build 236041 found UI Test snapshots differences: Details
|
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24773/wasm-skia-net9/index.html |
Colors and ColorHelper ship in Microsoft.InteractiveExperiences.Projection on WinAppSDK, alongside WindowId, so they now live in Uno.WinRT instead of Uno.UI. The sync generator no longer force-routes them to Uno.UI (the FontWeights part of that rule was dead: FontWeights is Microsoft.UI.Text). Uno.WinRT used to also compile these files as an internal Windows.UI.Colors and a public Windows.UI.ColorHelper. Both are UWP XAML-only types that are not part of the WinAppSDK contract, so they are removed and callers now use Microsoft.UI.Colors / ColorHelper. BREAKING CHANGE: Microsoft.UI.Colors and Microsoft.UI.ColorHelper moved from Uno.UI to Uno.WinRT, and Windows.UI.ColorHelper was removed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Wh5BsBX3zc95WAXNSNHLfU
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Wh5BsBX3zc95WAXNSNHLfU
Uno.WinRT compiled FontWeights.cs a second time as an internal Windows.UI.Text.FontWeights. That type is UWP XAML-only (it is not in Microsoft.Windows.SDK.NET), so it is removed; FontWeights.cs now only builds the public Microsoft.UI.Text.FontWeights in Uno.UI. Uno.UI.Composition.Drawing sits below Uno.UI, so its two placeholder FontWeights.Normal uses become new FontWeight(400). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Wh5BsBX3zc95WAXNSNHLfU
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DTgfjcA8ao6wFeRiEjYJXd
64c69c9 to
de3e4ec
Compare
|
Claude finished @MartinZikmund's task in 1m 5s —— View job Review completeTodo list
Verdict: ship ✅ (already approved by @Xiaoy312) Issues found: 0 This trigger corresponds to a
No new commits, no new findings. Nothing further to flag against |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24773/wasm-skia-net9/index.html |
|
The build 236104 found UI Test snapshots differences: Details
|
GitHub Issue: closes unoplatform/uno-private#2090
PR Type:
🔄 Refactoring (breaking, 7.0)
What changed? 🚀
Moves
Microsoft.UI.ColorsandMicrosoft.UI.ColorHelperto the assembly that matches WinAppSDK. This is a follow-up to #23669, which relocated the other back-compat redirects.Microsoft.InteractiveExperiences.Projection(verified against WinAppSDK 2.x metadata), next toWindowId. The sync generator was force-routing them toUno.UI. That rule is now removed, so they fall through toUno.WinRT. The hand-written sources move fromsrc/Uno.UI/UI/tosrc/Uno.WinRT/Microsoft/UI/.Microsoft.UI.FontWeightstype that doesn't exist.FontWeightsisMicrosoft.UI.Text.FontWeightsinMicrosoft.WinUI, so its routing is unchanged.Uno.WinRTused to also compile these files as an internalWindows.UI.Colorsand a publicWindows.UI.ColorHelper. Both types exist only in the UWP XAML projection (Microsoft.Windows.UI.Xaml.dll), not inMicrosoft.Windows.SDK.NET.dll, so they aren't part of the WinAppSDK contract. They're removed, and every caller (product code, runtime/unit tests, samples) now uses theMicrosoft.UItypes. Most of the diff isusing Microsoft.UI;additions for that.Windows.UI.Text.FontWeightsdropped too.FontWeights.cswas also compiled intoUno.WinRTas an internalWindows.UI.Text.FontWeights, another UWP XAML-only type. It's removed, andFontWeights.csnow only builds the publicMicrosoft.UI.Text.FontWeightsinUno.UI, which is its correct WinUI home (Microsoft.WinUI).Uno.UI.Composition.Drawingsits belowUno.UI, so its two placeholderFontWeights.Normaluses becomenew FontWeight(400); theFontWeightstruct itself is inMicrosoft.Windows.SDK.NETand stays inUno.WinRT. The internal type isn't public, so there's no PackageDiff entry.Windows.UI.ColorHelperremoval.Uno.WinRT/Generated/3.0.0.0/Microsoft.UI/and updated to the multi-platform#if false || …form that Uno.WinRT stubs use. TheWinAppSDK Sync Generator Checkjob verifies there's no drift. I didn't run the full sync locally because it needs the mobile workloads.Validation
Uno.WinRT(Skia, Android),Uno.UI-Skia-only.slnf(except the pre-existing net11-pinnedRemoteControl.TestProcessor),SamplesAppnet10.0-desktop,Uno.UI.UnitTests. All builds were strict, with noUnoFastDevBuild.Given_Colors+Given_Color: 41/41 passed. After the FontWeights commit,Given_FontWeight,Given_TextBlock,Given_RichTextBlock,Given_ColorsandGiven_Color: 344/345 passed. The one failure,Given_TextBlock.When_Inlines_Transitively_Change, is a known pre-existing failure on dark-theme Windows machines.Calendar Gregorian_FixedDate*tests that fail on non-UTC machines; they're unrelated to this change.PR Checklist ✅
Given_Colors:Colors/ColorHelpership in the same assembly asWindowId, which is also true on WinUI)Screenshots Compare Test Runresults.Breaking changes (7.0):
Microsoft.UI.ColorsandMicrosoft.UI.ColorHelpermove fromUno.UItoUno.WinRT, which is a binary break. Source is unaffected because both assemblies are referenced by every app.Windows.UI.ColorHelperis removed; useMicrosoft.UI.ColorHelper.🤖 Generated with Claude Code
https://claude.ai/code/session_01Wh5BsBX3zc95WAXNSNHLfU