Repository navigation
Redesign ControlGallery with a shared gallery design system - #791
Merged
jfversluis merged 4 commits intoNov 27, 2026
Merged
Conversation
Introduce a reusable design system for gallery-style samples: - Colors.xaml: semantic light/dark token pairs, accent palette, and deep accent variants for white text on fills - Styles.xaml: implicit control styles for both themes, plus explicit typography (Display, Title1, Title2, Headline, Body, Lead, Caption, Eyebrow, SectionHeader, Value, Icon) and layout styles (DemoLayout, DemoHeader, DemoSurface, Card, Hint, IconTile, PrimaryButton, TonalButton) - Inter (SIL OFL, Latin subset) and Material Icons Round (Apache 2.0), with license files shipped in the app Rebuild the home page as a categorized, searchable, filterable list with a hero header, and give all 46 demo pages a consistent header and demo surface. Also fix issues found along the way: Wikimedia thumbnail URLs that now return HTTP 400, NamedColor.Green returning the blue component, clock hands invisible in dark theme, the FlyoutPage detail having no way to open the flyout on phones, SwipeView delete conflicting with the iOS back-swipe gesture, and the Blazor page ignoring dark theme. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Replace the .NET 10 submarine bot with the .NET 11 rocket artwork from the .NET Conf site, used in the home page header and the ImageButton demo. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The render embedded in the .NET Conf hero SVG is mirrored and flipped back by an SVG transform, so the extracted image showed a mirrored 11. Mirror it to match the official artwork. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The CarouselView, CollectionView, IndicatorView, and SwipeView demos hotlinked Wikimedia monkey photos. Those are CC BY-SA images shown without attribution, and the thumbnail URLs keep breaking. Use Microsoft's 3D Fluent Emoji (MIT) instead, bundled in Resources/Images/Animals with the license file shipped in the app. The four pages now share one Animal data set. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Redth
approved these changes
Nov 27, 2026
jfversluis
deleted the
jfversluis-controlgallery-visual-redesign-pilot
branch
November 27, 2026 18:52
This was referenced Nov 27, 2026
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:
3b8f6bbff6bcaa1262885e16bff7fdc021cf1b81↑ All 47 pages opened in light and dark on an iOS 27.2 simulator and an Android 16 emulator, with screenshots.
↑ Search, filters, navigation and the interactive demos were exercised on both platforms.
↑ GPT and Gemini reviews; their high-confidence findings are fixed, including a GPT review of the Fluent Emoji change.
↑ The four pages that now use Fluent Emoji were checked in light and dark on iOS.
↓ On Android, two of the eight Fluent Emoji shots (CollectionView light, SwipeView dark) couldn't be captured because the shared host was overloaded. Every page was still seen rendering in at least one theme.
↓ SwipeView delete wasn't re-run after the data change; that code is a one-line
Remove.↓ Not run on Windows, tablets, or physical devices.
↓ CI hasn't run on the latest commit yet.
Summary
This redesigns the
11.0/UserInterface/ControlGallerysample as the pilot for a shared gallery design system, which other gallery-style samples (CollectionViewDemos, CarouselViewDemos, ShapesDemos, PlatformIntegrationDemos, and others) can reuse later. Each page still demonstrates its control clearly, and the page XAML stays short and easy to copy. Only this sample changes.What changed
Resources/Styles:Colors.xamlholds the color tokens: light/dark pairs, an accent palette, and darker variants for white text on colored fills.Styles.xamlholds the styles: defaults that theme every control in both themes, plus named styles for text, cards and the demo page layout.dotnet_bot.pngartwork is replaced with the .NET 11 rocket from the .NET Conf site, keeping the same file name. The render embedded in the site's SVG is stored mirrored and flipped back by an SVG transform, so it's mirrored here too, to keep the "11" the right way round.Resources/Images/Animalswith the license shipped in the app. The four pages share oneAnimalDataset.Fixes found along the way
Greenreturned the blue value.RightItems(swipe left).Screenshots
All 47 screens after the redesign (iOS light and dark)
Design system summary
Colors
#512BD4#A893FF#FFFFFF#1B0C52#ECE7FF/#2A1077#2D2363/#E5DEFF#F6F5FA#0F0E14#FFFFFF#1D1B27#EFEDF6#24222F#E3E0EC/#948EA8#353146/#6E6982#17151F/#5B5670/#6B6682#F4F2FA/#ADA8BF/#8C879F#7C5CFF, Blue#3B82F6, Sky#0284C7, Teal#0D9488, Green#16A34A, Amber#F59E0B, Orange#EA580C, Rose#F43F5E, Pink#EC4899. Use them for category icons, shapes, and color samples.DeepViolet,DeepBlue,DeepTeal,DeepRose,DeepPink.Typography (Inter)
MaterialIcons.csLayout and button styles
DemoLayout,DemoHeader,DemoSurface,Card,Hint/HintLabel,IconTile,ArtworkBackdrop(a soft background behind transparent artwork such as Fluent Emoji).PrimaryButton(the defaultButtonstyle is based on it) andTonalButton.Known follow-ups