Skip to content

Redesign ControlGallery with a shared gallery design system - #791

Merged
jfversluis merged 4 commits into
mainfrom
jfversluis-controlgallery-visual-redesign-pilot
Nov 27, 2026
Merged

jfversluis merged 4 commits into
mainfrom
jfversluis-controlgallery-visual-redesign-pilot

Conversation

@jfversluis

@jfversluis jfversluis commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 3b8f6bbff6bcaa1262885e16bff7fdc021cf1b81

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ Builds cleanly for iOS, Android and Mac Catalyst.
↑ 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/ControlGallery sample 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

  • Design system in Resources/Styles:
    • Colors.xaml holds the color tokens: light/dark pairs, an accent palette, and darker variants for white text on colored fills.
    • Styles.xaml holds the styles: defaults that theme every control in both themes, plus named styles for text, cards and the demo page layout.
  • Fonts: Inter (SIL OFL, Latin-only subset) and Material Icons Round (Apache 2.0) replace Open Sans. Their license files ship inside the app.
  • Home page: a gradient header, search, and category filter chips over a grouped list of cards with icons. The header hides on short screens such as a phone in landscape.
  • Demo pages: all 46 share the same header and card layout.
  • .NET 11 rocket: the dotnet_bot.png artwork 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.
  • Android: status bar colors now match the page background in light and dark.
  • Animal images: the CarouselView, CollectionView, IndicatorView and SwipeView demos used Wikimedia monkey photos. Those are CC BY-SA images shown without attribution, and the links kept breaking (most now return HTTP 400). The demos now use Microsoft's 3D Fluent Emoji (MIT), bundled in Resources/Images/Animals with the license shipped in the app. The four pages share one AnimalData set.

Fixes found along the way

  • NamedColor: Green returned the blue value.
  • GraphicsView clock: the hands were invisible in dark theme.
  • FlyoutPage: on phones there was no way to open the flyout, so the detail page now has a "Choose a color" button.
  • SwipeView: on iOS 26 the full-width back-swipe gesture took over swipe-right, so delete now uses RightItems (swipe left).
  • Blazor page: it now follows dark theme.

Screenshots

Home page before and after on iOS, light and dark

Home page before and after on Android, light and dark

CollectionView page before and after

SwipeView page before and after

The four animal demo pages with Fluent Emoji on iOS, light and dark

Grid page before and after

Button page before and after

All 47 screens after the redesign (iOS light and dark)

All screens after the redesign, iOS light theme

All screens after the redesign, iOS dark theme

Design system summary

Colors

Token Light Dark Use
Primary #512BD4 #A893FF Buttons, selection, category label
OnPrimary #FFFFFF #1B0C52 Text on Primary
PrimaryContainer / OnPrimaryContainer #ECE7FF / #2A1077 #2D2363 / #E5DEFF Tonal buttons, selected rows
Background #F6F5FA #0F0E14 Pages, navigation bar
Surface #FFFFFF #1D1B27 Cards, demo surfaces
SurfaceVariant #EFEDF6 #24222F Hints, disabled fills
Outline / OutlineStrong #E3E0EC / #948EA8 #353146 / #6E6982 Card borders / slider tracks, indicator dots
TextPrimary / TextSecondary / TextTertiary #17151F / #5B5670 / #6B6682 #F4F2FA / #ADA8BF / #8C879F Text levels, all at least 4.5:1 contrast
  • Accents: Violet #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.
  • Deep variants for white text on a colored fill: DeepViolet, DeepBlue, DeepTeal, DeepRose, DeepPink.

Typography (Inter)

Style Font Size Use
Display Bold 34 Large titles
Title1 Bold 28 Page title
Title2 SemiBold 22 Card titles
Headline SemiBold 17 List item titles
Body Regular 16 Default text
Lead Regular 16, secondary color Page description
Caption Regular 13, secondary color Small details, field labels
Eyebrow SemiBold 12, uppercase, Primary Category label above the title
SectionHeader SemiBold 13, uppercase, secondary color Group headers
Value SemiBold 18, centered What a demo outputs, such as "3 button clicks"
Icon Material Icons 24 Icons; glyph names are in MaterialIcons.cs

Layout and button styles

  • Layout: DemoLayout, DemoHeader, DemoSurface, Card, Hint / HintLabel, IconTile, ArtworkBackdrop (a soft background behind transparent artwork such as Fluent Emoji).
  • Buttons: PrimaryButton (the default Button style is based on it) and TonalButton.

Known follow-ups

  • Wikimedia images in other samples: Xaminals, CollectionViewDemos, CarouselViewDemos, DataBindingDemos, IndicatorViewDemos and TabbedPageDemo still hotlink Wikimedia photos. They should move to bundled Fluent Emoji the same way. This PR only changes ControlGallery.
  • WebView demo: it still loads microsoft.com, which can show a cookie banner.

jfversluis and others added 4 commits November 25, 2026 18:27
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>
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.

2 participants