From 743af7adb6ea2c24da81f28d54ebd93638dd69e7 Mon Sep 17 00:00:00 2001 From: Wind-Explorer Date: Thu, 26 Mar 2026 03:59:37 +0800 Subject: [PATCH] new splash screen --- src-tauri/src/services/scene/windows.rs | 8 ++++++-- static/splash.html | 11 +++++++++-- static/splash.jpg | Bin 0 -> 72833 bytes 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 static/splash.jpg diff --git a/src-tauri/src/services/scene/windows.rs b/src-tauri/src/services/scene/windows.rs index 66eb016..5ec4fff 100644 --- a/src-tauri/src/services/scene/windows.rs +++ b/src-tauri/src/services/scene/windows.rs @@ -69,8 +69,12 @@ fn harden_scene_window_on_macos(window: &tauri::Window) { pub fn open_splash_window() { info!("Starting splash window creation..."); - let mut config = - WindowConfig::accessory(SPLASH_WINDOW_LABEL, "/splash.html", "Friendolls Splash"); + let url = if cfg!(debug_assertions) { + "/splash.html?debug=Y" + } else { + "/splash.html" + }; + let mut config = WindowConfig::accessory(SPLASH_WINDOW_LABEL, url, "Friendolls Splash"); config.width = 800.0; config.height = 400.0; config.visible = false; diff --git a/static/splash.html b/static/splash.html index 207e34b..760b4e2 100644 --- a/static/splash.html +++ b/static/splash.html @@ -2,22 +2,29 @@ - Friendolls + Friendolls Splash
+