diff --git a/src/main/splash.ts b/src/main/splash.ts index 7c05de9..8b60895 100644 --- a/src/main/splash.ts +++ b/src/main/splash.ts @@ -20,7 +20,7 @@ export function createSplashWindow(startMinimized = false) { splash.loadFile(join(VIEW_DIR, "splash.html")); - const { splashBackground, splashColor, splashTheming } = Settings.store; + const { splashBackground, splashColor, splashTheming, disableSplashAnimation } = Settings.store; if (splashTheming) { if (splashColor) { @@ -35,5 +35,9 @@ export function createSplashWindow(startMinimized = false) { } } + if (!disableSplashAnimation) { + splash.webContents.insertCSS(`img {display: block !important}`); + } + return splash; } diff --git a/src/renderer/components/Settings.tsx b/src/renderer/components/Settings.tsx index eb0387f..236558e 100644 --- a/src/renderer/components/Settings.tsx +++ b/src/renderer/components/Settings.tsx @@ -49,6 +49,7 @@ export default function SettingsUi() { ["disableSmoothScroll", "Disable smooth scrolling", "Disables smooth scrolling in Vesktop", false], ["hardwareAcceleration", "Hardware Acceleration", "Enable hardware acceleration", true], ["splashTheming", "Splash theming", "Adapt the splash window colors to your custom theme", false], + ["disableSplashAnimation", "Disable splash animation", "Disable the animation on the splash window", false], [ "openLinksWithElectron", "Open Links in app (experimental)", diff --git a/src/shared/settings.d.ts b/src/shared/settings.d.ts index d796e4b..688e1a8 100644 --- a/src/shared/settings.d.ts +++ b/src/shared/settings.d.ts @@ -28,6 +28,7 @@ export interface Settings { checkUpdates?: boolean; splashTheming?: boolean; + disableSplashAnimation?: boolean; splashColor?: string; splashBackground?: string; } diff --git a/static/views/splash.html b/static/views/splash.html index bac2ad2..a125871 100644 --- a/static/views/splash.html +++ b/static/views/splash.html @@ -26,18 +26,14 @@ width: 128px; height: 128px; image-rendering: pixelated; + display: none; }
Loading Vesktop...