Repository navigation
Conversation
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
@ajpinedam does this change need to be done to 7.0 (main)? |
|
No, master is already covered by #25111. On 7.0, WASM gets no default color, and cc: @MartinZikmund |
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. |
|
Tick the box to add this pull request to the merge queue (same as
|
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
GitHub Issue: closes #26112
PR Type:
🐞 Bugfix
What changed? 🚀
On WebAssembly the splash screen stays white in dark mode, and setting
UnoSplashScreenColortotransparentdoesn't help. The SDK passes the color to Uno.Resizetizer, which strips the alpha and writessplashScreenColor: "#ffffff"toAppManifest.js. The bootstrapper applies that as an inline background, which overrides its own light and dark theme colors (#F3F3F3/#202020).Changes
UnoSplashScreenColor=transparentnow gives theUnoSplashScreenitem an emptyColor. Resizetizer then writes"transparent", which the bootstrapper treats as "follow the browser theme". The#FFFFFFdefault and every other value and target are unchanged, so the behavior is opt-in.UnoSplashScreenColorbuild schema description mentions the default and the WebAssemblytransparentvalue.UnoSplashScreenBackgroundColor=transparentmeans the same thing in 7.0.Testing
UnoSplashScreenColor=transparent, built against Uno.Sdk 6.8.0-dev.87 repacked with this change:AppManifest.jswent from"#ffffff"to"transparent". In headless Edge, the loader went from white to#202020in dark mode, and is#F3F3F3in light mode.Colorfor browserwasm (net9.0 and net10.0), android, ios, desktop and windows, with the property unset or set totransparent,Transparent,#112233and#00000000: only browserwasm withtransparentchanges.Not covered: an alpha-0 hex value such as
#00000000still becomes black on WASM. Native splash screens have no dark variant (unoplatform/uno.resizetizer#157).PR Checklist ✅
Screenshots Compare Test Runresults.