Skip to content

feat(sdk)!: Theme-aware splash screen properties, remove UnoSplashScreenColor - #25111

Merged
MartinZikmund merged 9 commits into
masterfrom
dev/mazi/sdk-splash-theme
Oct 9, 2026
Merged

MartinZikmund merged 9 commits into
masterfrom
dev/mazi/sdk-splash-theme

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

What changed

  • New single-project properties: UnoSplashScreenBackgroundColor, UnoSplashScreenDarkBackgroundColor, UnoSplashScreenDarkFile, UnoSplashScreenAccentColor and UnoSplashScreenDarkAccentColor. The accent properties have no SDK defaults: an unset UnoSplashScreenDarkAccentColor falls back to UnoSplashScreenAccentColor, then to the WinUI dark accent, the same way the dark background falls back to the light one and are only used for the WebAssembly loader progress bar; other targets ignore them.
  • UnoSplashScreenColor is removed (see Breaking changes). UnoSplashScreenBackgroundColor is the only splash background property.
  • Default color: browserwasm targets default to no color (follows the browser theme); other targets keep #FFFFFF. Detection uses the existing $(IsBrowserWasm), set per inner build by Uno.IsPlatform.props from the TFM, which is already imported before Uno.DefaultItems.Resizetizer.targets.
  • UnoSplashScreen item metadata: BackgroundColor (replaces Color), DarkBackgroundColor, DarkFile, AccentColor, DarkAccentColor.
  • The dark file is excluded from the default UnoImage and Content globs, like the light one.
  • Build schema and docs updated (splash-screen.md, uno-build-error-codes.md, migrating-to-uno-7.md).

Breaking changes (Uno Platform 7.0)

  • UnoSplashScreenColor is no longer read. Projects that still set it get warning UNOB0028 (emitted by _UnoWarnRemovedSplashScreenColor in Uno.DefaultItems.Resizetizer.targets, once per inner build like UNOB0027, only when the property is set) and the value is ignored. Rename it to UnoSplashScreenBackgroundColor.
  • The UnoSplashScreen item carries BackgroundColor instead of Color. Hand-written items should do the same.
  • WASM apps that never set a splash color get a theme-following loader instead of white.
  • SamplesApp.csproj updated to BackgroundColor="#ffffff"; no other uses in the repo.
  • Requires an Uno.Resizetizer with feat!: Support dark theme splash screen on WebAssembly and use BackgroundColor on UnoSplashScreen uno.resizetizer#401, which reads BackgroundColor (and AccentColor / DarkAccentColor for the loader progress bar) on splash screens and ignores Color with a warning.

Why

Theme-aware splash screens on WebAssembly: unoplatform/uno.resizetizer#401, unoplatform/Uno.Wasm.Bootstrap#1097, unoplatform/uno.toolkit.ui#1667, unoplatform/uno.resizetizer#157.

Validation

No MSBuild evaluation test infrastructure exists for these targets, so I evaluated a scratch project importing Uno.IsPlatform.Before.props, Uno.IsPlatform.props and Uno.DefaultItems.Resizetizer.targets (dotnet msbuild -getItem:UnoSplashScreen):

Scenario Result
net10.0-browserwasm BackgroundColor empty
net10.0-android BackgroundColor #FFFFFF
android + UnoSplashScreenBackgroundColor=#112233 + dark color flows to BackgroundColor / DarkBackgroundColor
browserwasm / android + UnoSplashScreenColor=#445566 ignored (default applies), UNOB0028 emitted
UnoSplashScreenColor unset no UNOB0028
browserwasm / android, accent properties unset AccentColor / DarkAccentColor empty
browserwasm / android + UnoSplashScreenAccentColor=#112233 + UnoSplashScreenDarkAccentColor=#445566 flow to AccentColor / DarkAccentColor

🤖 Generated with Claude Code

https://claude.ai/code/session_013terw2KRvw8e64cogQymUL

MartinZikmund and others added 2 commits October 8, 2026 11:39
Add UnoSplashScreenBackgroundColor (UnoSplashScreenColor stays as a fallback),
UnoSplashScreenDarkBackgroundColor and UnoSplashScreenDarkFile. WebAssembly no
longer defaults the color to white so the loader follows the browser theme.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013terw2KRvw8e64cogQymUL
@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund marked this pull request as ready for review October 8, 2026 10:55
Copilot AI balanced review requested due to automatic review settings October 8, 2026 10:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 20s —— View job


Review summary

Verdict: ship (one minor, non-blocking finding).

  • Issues: 0 blocking, 0 major, 1 minor (posted inline).
  • The property fallback order is correct: BackgroundColor, then legacy Color, then #FFFFFF on non-WASM.
  • The dark file is excluded from the UnoImage and Content globs as intended. An empty UnoSplashScreenDarkFile in Exclude/Remove is harmless.
  • The schema and docs match the target behavior.
  • This is a build-time change, so none of the C#, runtime-test or sample rules apply. The PR only ships with a Resizetizer that contains [iOS][Android] UIElementCollection is not a collection of UIElement #401, and the DarkImage vs DarkFile naming mismatch needs resolving there before release. Both are already called out in the PR description.
  • The validation was a manual MSBuild evaluation of a scratch project. I did not re-run it.
  • I did not build or test anything in this review.
  • git diff origin/master...HEAD failed with "no merge base" in this checkout, so I reviewed the two commits directly.

… color

It kept its own #FFFFFF default, so on WebAssembly it could disagree with
UnoSplashScreenBackgroundColor. It now mirrors the effective value for
targets that still read the legacy name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013terw2KRvw8e64cogQymUL
Copilot AI balanced review requested due to automatic review settings October 8, 2026 11:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 13s —— View job


Review summary

Verdict: ship. I found 0 blocking, 0 major and 0 minor issues in the current head (95259a3f).

  • The earlier minor finding about UnoSplashScreenColor is fixed. Uno.DefaultItems.Resizetizer.targets:19 now sets the legacy property from the effective UnoSplashScreenBackgroundColor, so the two can no longer disagree. On WASM both stay empty, and elsewhere both are #FFFFFF.
  • The fallback order is correct: UnoSplashScreenBackgroundColor, then legacy UnoSplashScreenColor, then #FFFFFF on non-WASM targets.
  • The dark file is excluded from the UnoImage glob and removed from Content, matching the light file. An empty UnoSplashScreenDarkFile is harmless in both places.
  • The UnoSplashScreen item emits Color and not BackgroundColor, as the PR description says, so it avoids the Resizetizer [iOS][Android] UIElementCollection is not a collection of UIElement #401 conflict.

Cross-cutting, not specific to a line:

  • The SDK needs a Resizetizer that includes [iOS][Android] UIElementCollection is not a collection of UIElement #401 before dark values take effect.
  • The DarkImage vs DarkFile metadata name mismatch with the Resizetizer draft has to be resolved before release.
  • I did not build or run anything. This review was by inspection (Code review only), and I did not re-run the MSBuild evaluation from the PR description.
  • The comment did not contain a specific request, so I reviewed and made no code changes.

@unodevops

Copy link
Copy Markdown
Contributor

MartinZikmund and others added 2 commits October 8, 2026 14:52
…ckgroundColor

The Uno.Sdk no longer reads UnoSplashScreenColor. Projects that still set
it get the UNOB0028 warning and the value is ignored. The UnoSplashScreen
item now carries BackgroundColor instead of Color, which requires an
Uno.Resizetizer that contains unoplatform/uno.resizetizer#401.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013terw2KRvw8e64cogQymUL
Copilot AI balanced review requested due to automatic review settings October 8, 2026 12:52
@MartinZikmund MartinZikmund changed the title feat(sdk): Theme-aware splash screen properties feat(sdk)!: Theme-aware splash screen properties, remove UnoSplashScreenColor Oct 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label Oct 8, 2026
@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 15s —— View job


Review summary

Verdict: ship. 0 blocking, 0 major, 0 minor findings at head 80fc0f68. No inline comments were needed.

  • The Uno.DefaultItems.Resizetizer.targets change looks consistent. UnoSplashScreenBackgroundColor defaults to #FFFFFF only when $(IsBrowserWasm) is not 'true', so WASM follows the browser theme.
  • The UnoSplashScreen item emits BackgroundColor, DarkBackgroundColor and DarkFile.
  • The dark file is excluded from the UnoImage glob and removed from Content, like the light file.
  • _UnoWarnRemovedSplashScreenColor emits UNOB0028 only when UnoSplashScreenColor is set and the build isn't design-time. The legacy default and mirror lines from 95259a3f are gone, so the earlier review finding no longer applies.
  • SamplesApp.csproj is updated and the three docs files match the behavior.

Cross-cutting

  • Open question from @ramezgerges on Sdk.props.buildschema.json: why not keep UnoSplashScreenColor? The PR description answers part of it, since the item metadata moves to BackgroundColor to match Resizetizer [iOS][Android] UIElementCollection is not a collection of UIElement #401. It doesn't say why the SDK property had to be renamed too. A short rationale in the PR or in migrating-to-uno-7.md would settle it. Otherwise, keeping the old name as an alias for UnoSplashScreenBackgroundColor would avoid a breaking feat! change.
  • Resizetizer dependency: the SDK needs an Uno.Resizetizer that includes [iOS][Android] UIElementCollection is not a collection of UIElement #401. Until then, BackgroundColor isn't read, so splash colors would be ignored. Make sure the SDK's Resizetizer version bump lands first or alongside this PR.
  • Metadata naming: an earlier review noted a DarkImage vs DarkFile mismatch with the Resizetizer draft. Confirm the final Resizetizer uses DarkFile.
  • Validation: this review was by inspection (Code review only). I did not build or run anything, and I did not re-run the MSBuild evaluation matrix from the PR description.

Copilot AI balanced review requested due to automatic review settings October 8, 2026 12:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 16s —— View job


Review summary

Verdict: ship. 0 blocking, 0 major, 0 minor findings at head 4b05e9ca. No inline comments needed.

  • The new AccentColor and DarkAccentColor metadata on UnoSplashScreen is wired the same way as the background colors. They have no defaults, so they stay empty unless the user sets them.
  • The UnoSplashScreenBackgroundColor default is #FFFFFF only when $(IsBrowserWasm) isn't 'true'. WASM therefore follows the browser theme.
  • $(UnoSplashScreenDarkFile) is excluded from the UnoImage glob and removed from Content. An empty value is harmless in both places.
  • _UnoWarnRemovedSplashScreenColor emits UNOB0028 only for non-design-time builds when the legacy property is set.

Cross-cutting

  • PR description is stale. It doesn't mention the UnoSplashScreenAccentColor and UnoSplashScreenDarkAccentColor properties added in 779db89a. Please add them so the squashed commit message and release notes are complete.
  • Resizetizer dependency: the SDK needs an Uno.Resizetizer that includes feat!: Support dark theme splash screen on WebAssembly and use BackgroundColor on UnoSplashScreen uno.resizetizer#401. It must also read AccentColor, DarkAccentColor and DarkFile (not DarkImage). Otherwise those values are silently ignored.
  • Rename vs alias (@ramezgerges' question): the rationale is now in the thread. It also needs to be in migrating-to-uno-7.md, if it isn't already, so the breaking feat! change is justified for readers.
  • Validation: this was Code review only. I did not build or run anything, and I did not re-run the MSBuild evaluation matrix. The matrix in the description also predates the accent properties.

Comment thread doc/articles/splash-screen.md Resolved
@unodevops

Copy link
Copy Markdown
Contributor

Copilot AI balanced review requested due to automatic review settings October 9, 2026 07:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 11s —— View job


Review summary

Verdict: ship. 0 blocking, 0 major, 0 minor findings at head 37578d1c. The comment had no specific request, so I made no code changes.

  • Xiaoy312's suggestion to group the light and dark rows in doc/articles/splash-screen.md is already applied in 37578d1c. The properties table and the sample PropertyGroup now follow the same order.
  • The accent properties are documented with their WebAssembly-only scope and their WinUI-accent defaults.
  • The UnoSplashScreenColor removal, UNOB0028 and the BackgroundColor metadata rename are covered in splash-screen.md.

Cross-cutting

@MartinZikmund MartinZikmund added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Oct 9, 2026
Copilot AI balanced review requested due to automatic review settings October 9, 2026 08:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 13s —— View job


Review summary

Verdict: ship. 0 blocking, 0 major, 0 minor findings at head 1323f265. No inline comments needed. The comment had no specific request, so I made no code changes.

  • Uno.DefaultItems.Resizetizer.targets is consistent. UnoSplashScreenBackgroundColor defaults to #FFFFFF only when $(IsBrowserWasm) isn't 'true'. The UnoSplashScreen item carries BackgroundColor, DarkBackgroundColor, AccentColor, DarkAccentColor and DarkFile.
  • $(UnoSplashScreenDarkFile) is excluded from the UnoImage glob and removed from Content. An empty value is harmless in both places.
  • _UnoWarnRemovedSplashScreenColor emits UNOB0028 only for non-design-time builds when the legacy property is set.
  • The latest commit only clarifies the dark-color fallbacks in the docs and the build schema.

Cross-cutting

@unodevops

Copy link
Copy Markdown
Contributor

@mergify

mergify Bot commented Oct 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 393913d into master Oct 9, 2026
58 of 59 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/sdk-splash-theme branch October 9, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation kind/documentation ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants