diff --git a/src/main/splash.ts b/src/main/splash.ts index 8b60895..7283455 100644 --- a/src/main/splash.ts +++ b/src/main/splash.ts @@ -12,6 +12,11 @@ import { ICON_PATH, VIEW_DIR } from "shared/paths"; import { Settings } from "./settings"; export function createSplashWindow(startMinimized = false) { + const { splashBackground, splashColor, splashTheming, disableSplashAnimation } = Settings.store; + + if (disableSplashAnimation) { + SplashProps.height = 150; + } const splash = new BrowserWindow({ ...SplashProps, icon: ICON_PATH, @@ -20,8 +25,6 @@ export function createSplashWindow(startMinimized = false) { splash.loadFile(join(VIEW_DIR, "splash.html")); - const { splashBackground, splashColor, splashTheming, disableSplashAnimation } = Settings.store; - if (splashTheming) { if (splashColor) { const semiTransparentSplashColor = splashColor.replace("rgb(", "rgba(").replace(")", ", 0.2)");