godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.09k stars 21.15k forks source link

[4.3-stable]Changing the Boot Splash background color does not reflect in the web export #96874

Open itsabhiaryan opened 1 month ago

itsabhiaryan commented 1 month ago

Tested versions

Godot_v4.3-stable_win64

System information

Windows 10 Pro - Godot_v4.3-stable_win64 - Compatibility

Issue description

Changing the Boot Splash background color does not reflect in the web export. I even tried to Run directly from the Editor but same result. (Run in Browser). or Export Web build and Check Background

Steps to reproduce

Project Settings -> Application -> Boot Splash -> BG Color -> Set any Color This change project.godot -> boot_splash/bg_color=Color(1, 0, 0, 1)

Run directly from Editor but same result.

Minimal reproduction project (MRP)

bootsplashbgcolor.zip

patwork commented 3 weeks ago

At this point, the HTML template changed in 4.3 only supports boot splash image. Expansion to include more parameters from the application/boot_splash setting will require adding more variables passed during export.

For now, I can suggest changing the background using CSS style inside Head Include field, for example:

<style>
#status { background-color: red; }
</style>

or even more fancy:

<style>
#status { background: radial-gradient(circle, rgba(15,15,121,1) 0%, rgba(25,224,56,1) 100%); }
</style>