mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Merge pull request #96625 from elpozewaunig/web_splash_color
Display project settings splash color on web export
This commit is contained in:
commit
a833685e75
2
misc/dist/html/full-size.html
vendored
2
misc/dist/html/full-size.html
vendored
@ -38,7 +38,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#status {
|
#status {
|
||||||
background-color: #242424;
|
background-color: $GODOT_SPLASH_COLOR;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -169,6 +169,7 @@ void EditorExportPlatformWeb::_fix_html(Vector<uint8_t> &p_html, const Ref<Edito
|
|||||||
replaces["$GODOT_PROJECT_NAME"] = GLOBAL_GET("application/config/name");
|
replaces["$GODOT_PROJECT_NAME"] = GLOBAL_GET("application/config/name");
|
||||||
replaces["$GODOT_HEAD_INCLUDE"] = head_include + custom_head_include;
|
replaces["$GODOT_HEAD_INCLUDE"] = head_include + custom_head_include;
|
||||||
replaces["$GODOT_CONFIG"] = str_config;
|
replaces["$GODOT_CONFIG"] = str_config;
|
||||||
|
replaces["$GODOT_SPLASH_COLOR"] = "#" + Color(GLOBAL_GET("application/boot_splash/bg_color")).to_html(false);
|
||||||
replaces["$GODOT_SPLASH"] = p_name + ".png";
|
replaces["$GODOT_SPLASH"] = p_name + ".png";
|
||||||
|
|
||||||
if (p_preset->get("variant/thread_support")) {
|
if (p_preset->get("variant/thread_support")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user