Skip to content

fix(sdk): Let a transparent WASM splash follow the theme - #26265

Open
ajpinedam wants to merge 1 commit into
unoplatform:servicing/6.8from
ajpinedam:dev/anpi/wasm-splash-transparent-6.8
Open

ajpinedam wants to merge 1 commit into
unoplatform:servicing/6.8from
ajpinedam:dev/anpi/wasm-splash-transparent-6.8

Conversation

@ajpinedam

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #26112

PR Type:

🐞 Bugfix

What changed? 🚀

On WebAssembly the splash screen stays white in dark mode, and setting UnoSplashScreenColor to transparent doesn't help. The SDK passes the color to Uno.Resizetizer, which strips the alpha and writes splashScreenColor: "#ffffff" to AppManifest.js. The bootstrapper applies that as an inline background, which overrides its own light and dark theme colors (#F3F3F3 / #202020).

Changes

  • On browserwasm, UnoSplashScreenColor=transparent now gives the UnoSplashScreen item an empty Color. Resizetizer then writes "transparent", which the bootstrapper treats as "follow the browser theme". The #FFFFFF default and every other value and target are unchanged, so the behavior is opt-in.
  • The UnoSplashScreenColor build schema description mentions the default and the WebAssembly transparent value.
  • 7.0 already follows the theme by default (feat(sdk)!: Theme-aware splash screen properties, remove UnoSplashScreenColor #25111). This is the non-breaking 6.8 equivalent, and UnoSplashScreenBackgroundColor=transparent means the same thing in 7.0.

Testing

  • A blank 6.8 WASM app with UnoSplashScreenColor=transparent, built against Uno.Sdk 6.8.0-dev.87 repacked with this change: AppManifest.js went from "#ffffff" to "transparent". In headless Edge, the loader went from white to #202020 in dark mode, and is #F3F3F3 in light mode.
  • MSBuild evaluation of the item's Color for browserwasm (net9.0 and net10.0), android, ios, desktop and windows, with the property unset or set to transparent, Transparent, #112233 and #00000000: only browserwasm with transparent changes.
  • No automated test, since there is no test project for the SDK targets.

Not covered: an alpha-0 hex value such as #00000000 still becomes black on WASM. Native splash screens have no dark variant (unoplatform/uno.resizetizer#157).

PR Checklist ✅

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@MartinZikmund

Copy link
Copy Markdown
Member

@ajpinedam does this change need to be done to 7.0 (main)?

@ajpinedam

ajpinedam commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

No, master is already covered by #25111. On 7.0, WASM gets no default color, and UnoSplashScreenColor is removed. Resizetizer 2.x drops a transparent UnoSplashScreenBackgroundColor (unoplatform/uno.resizetizer#401), so the loader follows the theme either way. This PR is 6.8-only: 6.x keeps the #FFFFFF default and Resizetizer 1.x turns transparent into white, so this gives 6.8 an opt-in without changing the default.

cc: @MartinZikmund

@ajpinedam

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.

@mergify

mergify Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@ajpinedam

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

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.

3 participants