Skip to content

fix(composition): Default stroke miter limit to 1 - #25484

Merged
MartinZikmund merged 2 commits into
unoplatform:masterfrom
Nacl-HCl:fix/composition-stroke-miter-default-25351
Nov 9, 2026
Merged

MartinZikmund merged 2 commits into
unoplatform:masterfrom
Nacl-HCl:fix/composition-stroke-miter-default-25351

Conversation

@Nacl-HCl

@Nacl-HCl Nacl-HCl commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #25351

PR Type:

🐞 Bugfix

What changed? 🚀

CompositionSpriteShape.StrokeMiterLimit now defaults to 1, matching WinUI and ensuring newly created shapes start with a valid miter limit.

A Skia Desktop runtime regression test verifies the default value.

Validation

  • Confirmed the regression test fails before the fix with Expected:<1>. Actual:<0>.
  • Confirmed the targeted runtime test passes after the fix.
  • Built the Release net11.0-desktop SamplesApp successfully with no warnings or errors.

Impact

Newly created CompositionSpriteShape instances that do not explicitly set StrokeMiterLimit will now use 1 instead of the invalid default value 0.

PR Checklist ✅

@CLAassistant

CLAassistant commented Oct 14, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@Nacl-HCl
Nacl-HCl force-pushed the fix/composition-stroke-miter-default-25351 branch from 0a3c3f0 to a3fdbf9 Compare November 5, 2026 08:45
@MartinZikmund

Copy link
Copy Markdown
Member

@Nacl-HCl can you adjust the runtime test so it runs on both Uno and WinUI targets? So that we also have the WinUI native confirmation of the default value

@Nacl-HCl

Nacl-HCl commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Thanks — done. I've moved When_Default_StrokeMiterLimit out of the #if __SKIA__ block so it runs on both Uno and WinUI targets; the test body itself is unchanged.

@Nacl-HCl
Nacl-HCl force-pushed the fix/composition-stroke-miter-default-25351 branch from 56f2d3f to 0fb2fdf Compare November 9, 2026 02:31
@MartinZikmund

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 244729 found UI Test snapshots differences: skia-linux-screenshots: 2458, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 2458 changed over 2494

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png
    • AppBarButtonTest.png-dark
    • Accessibility_ScreenReader.png-dark
    • AppBar_KeyBoard.png
    • AppBarButtonWithIconTest.png
    • Application_DispatcherShutdownMode.png
    • ApplicationViewMode.png-dark
    • AppXamlDefinedResources.png
    • AppWindowClosing.png-dark
    • Attributed_text_Simple.png
    • AppWindowPresenters.png-dark
    • AuthenticationBroker_Demo.png
    • ArcSegment.png
    • AutomationPropertiesExtensions_Role.png
    • AuthenticationBroker_Cancel.png
    • AutoSizedTopLeft.png-dark
    • AutoBorderStretchwithtopmargin.png-dark
    • AutoSizedTopLeft.png
    • AutomationProperties_Relations.png
    • AutoSuggestBox_SoftKeboard.png-dark
  • skia-windows-screenshots: 2458 changed over 2494

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png-dark
    • AnimatedIconPage.png
    • AppBarButtonTest.png-dark
    • AppBar_KeyBoard.png
    • ApplicationViewSizing.png
    • AppWindowFeatures.png
    • AppXamlDefinedResources.png
    • Attributed_text_Simple.png-dark
    • AuthenticationBroker_Demo.png-dark
    • AuthenticationBroker_Demo.png
    • AutomationProperties_Name.png-dark
    • AutomationProperties_Name.png
    • AutoSuggestBox_Description.png-dark
    • AutoSuggestBox_Description.png
    • BackGesture.png-dark
    • BackGesture.png
    • Basics.png-dark
    • Basics.png
    • BitmapImage_vs_SvgImageSource.png-dark
    • BitmapImage_vs_SvgImageSource.png

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@Nacl-HCl

Nacl-HCl commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Note on the Analyze (csharp) failure on this head (0fb2fdf, CodeQL Advanced run 42551429490, attempt #2): the only error is MSB3923: Failed to download file "https://github.com/gfx-rs/wgpu-native/releases/download/v29.0.1.1/wgpu-windows-x86_64-msvc-release.zip" — 504 (Gateway Time-out) — while building SamplesApp for CodeQL analysis (Uno.UI.Composition.WebGpu/wgpu-native.targets:166). The SamplesApp assembly itself built successfully before that download step, and this PR does not touch the WebGPU / wgpu-native targets, so the failure looks like a transient network issue on the runner rather than something this change caused. The other two CodeQL jobs (javascript-typescript, java-kotlin) passed.

@mergify

mergify Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@MartinZikmund
MartinZikmund merged commit b9bb07a into unoplatform:master Nov 9, 2026
47 of 48 checks passed
@welcome

welcome Bot commented Nov 9, 2026

Copy link
Copy Markdown

🎉 Congratulations on getting your very first pull request merged into Uno Platform! This is a huge milestone — you are now officially part of the community of contributors helping shape the future of cross-platform .NET development, and your code will reach developers and apps all over the world. 🌍

We are genuinely grateful for the time and care you put into this contribution. Every PR — big or small — makes Uno Platform better for everyone, and we hope this is the first of many. We cannot wait to see what you build next! 🚀

As a small thank-you, we would love to send you some swag so you can wear your contributor status with pride. And if you have any feedback or ideas on how we can make contributing to Uno Platform even better, please open a feedback issue — we truly value your perspective.

giphy
Welcome to the family, and merci beaucoup! 👋❤️

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.

CompositionSpriteShape.StrokeMiterLimit defaults to 0 instead of 1

5 participants