mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-22 21:35:08 +00:00
add option to disable splash screen
This commit is contained in:
parent
6e1913cafc
commit
9905592b24
3 changed files with 19 additions and 5 deletions
|
@ -486,16 +486,22 @@ export function loadUrl(uri: string | undefined) {
|
||||||
|
|
||||||
export async function createWindows() {
|
export async function createWindows() {
|
||||||
const startMinimized = process.argv.includes("--start-minimized");
|
const startMinimized = process.argv.includes("--start-minimized");
|
||||||
const splash = createSplashWindow(startMinimized);
|
|
||||||
// SteamOS letterboxes and scales it terribly, so just full screen it
|
let splash: BrowserWindow | undefined;
|
||||||
if (isDeckGameMode) splash.setFullScreen(true);
|
if (Settings.store.enableSplashScreen !== false) {
|
||||||
|
splash = createSplashWindow(startMinimized);
|
||||||
|
|
||||||
|
// SteamOS letterboxes and scales it terribly, so just full screen it
|
||||||
|
if (isDeckGameMode) splash.setFullScreen(true);
|
||||||
|
}
|
||||||
|
|
||||||
await ensureVencordFiles();
|
await ensureVencordFiles();
|
||||||
runVencordMain();
|
runVencordMain();
|
||||||
|
|
||||||
mainWin = createMainWindow();
|
mainWin = createMainWindow();
|
||||||
|
|
||||||
mainWin.webContents.on("did-finish-load", () => {
|
mainWin.webContents.on("did-finish-load", () => {
|
||||||
splash.destroy();
|
splash?.destroy();
|
||||||
|
|
||||||
if (!startMinimized) {
|
if (!startMinimized) {
|
||||||
mainWin!.show();
|
mainWin!.show();
|
||||||
|
|
|
@ -60,11 +60,18 @@ const SettingsOptions: Record<string, Array<BooleanSetting | SettingsComponent>>
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
disabled: () => Settings.store.customTitleBar ?? isWindows
|
disabled: () => Settings.store.customTitleBar ?? isWindows
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: "enableSplashScreen",
|
||||||
|
title: "Enable Splash Screen",
|
||||||
|
description: "Shows a small splash screen while Vesktop is loading",
|
||||||
|
defaultValue: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: "splashTheming",
|
key: "splashTheming",
|
||||||
title: "Splash theming",
|
title: "Splash theming",
|
||||||
description: "Adapt the splash window colors to your custom theme",
|
description: "Adapt the splash window colors to your custom theme",
|
||||||
defaultValue: false
|
defaultValue: false,
|
||||||
|
disabled: () => Settings.store.enableSplashScreen === false
|
||||||
},
|
},
|
||||||
WindowsTransparencyControls
|
WindowsTransparencyControls
|
||||||
],
|
],
|
||||||
|
|
1
src/shared/settings.d.ts
vendored
1
src/shared/settings.d.ts
vendored
|
@ -22,6 +22,7 @@ export interface Settings {
|
||||||
clickTrayToShowHide?: boolean;
|
clickTrayToShowHide?: boolean;
|
||||||
customTitleBar?: boolean;
|
customTitleBar?: boolean;
|
||||||
|
|
||||||
|
enableSplashScreen?: boolean;
|
||||||
splashTheming?: boolean;
|
splashTheming?: boolean;
|
||||||
splashColor?: string;
|
splashColor?: string;
|
||||||
splashBackground?: string;
|
splashBackground?: string;
|
||||||
|
|
Loading…
Add table
Reference in a new issue