Repository navigation
Redesign ShapesDemos with the gallery design system - #800
Open
jfversluis wants to merge 1 commit into
Open
jfversluis wants to merge 1 commit into
jfversluis wants to merge 1 commit into
Conversation
Apply the shared gallery design system (from CollectionViewDemos) to the Shapes sample: a searchable home page grouped by category, and a header plus an always-light artboard for every example, so the shapes keep their docs colors in both themes. Also make the demos work on .NET MAUI 11: - Fit the drawings to the screen with a small ScaleToFitView. - Rewrite the analog clock and flower with positive coordinates, and bind the clock hands with x:Reference so they rotate. - Give Uniform paths a height so they're no longer measured as zero. - Show the render transform sliders next to the path on wide screens. - Stop the clock and moving spiral timers when their page isn't visible. - Add the docs' Path triangle and Nonzero GeometryGroup examples, and remove TranslationY offsets the docs snippets don't use. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
e3bd5b7547f5e5abf16267ce0a9bf5a31d8cea11↑ All 23 pages captured in light and dark on an iPhone 17 Pro simulator (iOS 27.2) and an Android 16 emulator, before and after.
↑ Home chip filter, card navigation, search, and the clock checked with real touch on a physical Pixel 10.
↑ Clock hands, moving spiral, render transform sliders, search, navigation, and the landscape layout checked at runtime.
↑ GPT and Claude code reviews and design reviews; findings addressed.
↓ Interactions were driven through code on iOS, not real touch.
↓ Windows and Mac Catalyst not run locally; CI for this revision pending.
Redesigns
11.0/UserInterface/Views/ShapesDemoswith the shared gallery design system from CollectionViewDemos (#793). Every page still demonstrates the same shapes with the same XAML, so docs readers can compare it to the Shapes docs.What changed
BlackandDarkBlue(in the old dark theme, the cat and clock were invisible).ScaleToFitView(the clock, flower, cat, hello, and monkey face were off-screen or cut off before).dotnet_bot.pngis the .NET 11 rocket from ControlGallery.Fixes for .NET MAUI 11 behavior
Several demos rendered wrong on .NET MAUI 11 before this change, on both iOS and Android:
Pathdoesn't pass itsBindingContexttoRenderTransform. The bindings now useSource={x:Reference page}. The clock and the flower also used negative coordinates, whichShapenow shifts into view per path, so the parts no longer lined up. Both are rewritten with positive coordinates.Aspect="Uniform"paths without a size are measured as zero height inside aVerticalStackLayout(Path, triangle, Bezier curve, and the geometry groups showed nothing). Their artboards now set a height, and the path XAML itself is unchanged.System.Threading.Timerthat was only disposed in a finalizer. They now useIDispatcherTimerand run only while the page is visible.Docs alignment
Path Data="M 10,100 L 100,100 100,50Z"triangle and theNonzeroGeometryGroupof four circles, which the sample was missing.TranslationYoffsets on the "Multiple PathFigures" and arcsGeometryGrouppaths, which the docs snippets don't have.Known framework issues (not fixed here)
LineGeometrydraws nothing on iOS or Android, so the LineGeometry example is empty.Path.RenderTransformoutput is clipped to the path's own bounds, so parts of the render transform examples, and all of the twoMatrixTransformexamples, are cut off. The page's lead explains the clipping.Screenshots
iOS light, before and after:
Android dark, before and after:
Validation