Skip to content

fix(themes): adapt to upstream typography and spacing changes (backport #1636) - #1640

Merged
kazo0 merged 1 commit into
servicing/10.0from
mergify/bp/servicing/10.0/pr-1636
Sep 17, 2026
Merged

kazo0 merged 1 commit into
servicing/10.0from
mergify/bp/servicing/10.0/pr-1636

Conversation

@mergify

@mergify mergify Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Related issues: unoplatform/Uno.Themes#1709, unoplatform/Uno.Themes#1688

GitHub issue/PR: unoplatform/Uno.Themes#1710, unoplatform/Uno.Themes#1701

PR Type

  • Bugfix
  • Documentation content changes

What is the current behavior?

Updating Uno Themes removes SimpleFontFamily, causing Simple Toolkit styles to fail during resource resolution. Toolkit also documents density as a fixed spacing unit, whereas upstream now separates DefaultSpacing from the density mode.

What is the new behavior?

Compare Toolkit spacing generation against a plain MaterialTheme with identical inputs using Border.Padding probes, and reuse the existing GetDescendants extension in font checks.

Update the existing library and sample Themes pins to 8.0.0-dev.15, replace the nine removed font references with DefaultFontFamily, and use ThemeResource for the Card, CardContentControl, and Chip font setters. Preserve Divider/NavigationBar lightweight styling keys. Link inherited BaseTheme API usage to the authoritative Uno Themes guides. Keep Toolkit setup, override limitations, and migration actions here; public docs do not reference exact prerelease package builds.

The package's nuspec points to upstream 47d42c18, containing all latest functional changes. Upstream HEAD differs only by its 9.0 version bump, which is not yet published. Toolkit remains on its existing 10.0-dev.{height} version; no additional major bump or new package dependency.

Validation

  • Red/fix/green: 4 Simple font cases failed before the fix; all 7 new compatibility cases pass afterward.
  • Desktop runtime tests: 41 passed, 0 failed, 0 skipped across ThemeCompatibilityTests, ThemeInitTests, CardContentControlTests, ChipGroupTests, and NavigationBarTests.
  • Release builds passed: Material Desktop/WebAssembly, Simple Desktop, Cupertino Desktop, and affected libraries including Material Markup.
  • Standalone affected library builds: 0 warnings, 0 errors.
  • Sample builds retain warnings identical to isolated origin/main builds: Material Desktop 100, Material WebAssembly 113, Simple/Cupertino Desktop 99 each. No suppressions added.
  • WebAssembly runtime tests, mobile/WinUI, and Debug hot-reload tests were not run.
  • XAML Styler executed; unrelated formatting churn excluded. git diff --check passes.

PR Checklist

  • Tested with the repository SDKs (.NET SDK 10.0.400)
  • Runtime regression tests added and run
  • General/migration documentation updated
  • Conventional Commit
  • Associated upstream changes linked
  • Contains no breaking changes — inherited upstream font-resource and numeric density changes are documented for the existing Toolkit 10 major line

Other information

Test scope, exact invocation pattern, package provenance, and verification limits are recorded in specs/themes-compatibility/progress.md.

Review follow-up validation

  • All 7 ThemeCompatibilityTests pass on macOS Desktop after the review changes (0 failed, 0 skipped).
  • Release Material Desktop and WebAssembly builds pass (100/113 sample warnings, 0 errors).
  • Review changes retain all three density cases without duplicating the upstream multiplier table.

This is an automatic backport of pull request #1636 done by [Mergify](https://mergify.com).

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
(cherry picked from commit 572ffc3)
@kazo0
kazo0 enabled auto-merge (squash) September 17, 2026 00:33
@kazo0
kazo0 merged commit 5614d48 into servicing/10.0 Sep 17, 2026
20 checks passed
@kazo0
kazo0 deleted the mergify/bp/servicing/10.0/pr-1636 branch September 17, 2026 00:47
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.

1 participant