2023-04-10 05:49:50 +09:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: GPL-3.0
|
|
|
|
* Vencord Desktop, a desktop app aiming to give you a snappier Discord Experience
|
|
|
|
* Copyright (c) 2023 Vendicated and Vencord contributors
|
|
|
|
*/
|
|
|
|
|
2023-03-30 08:02:30 +09:00
|
|
|
import { BrowserWindow } from "electron";
|
|
|
|
import { join } from "path";
|
2023-04-06 00:55:49 +09:00
|
|
|
import { STATIC_DIR } from "shared/paths";
|
2023-03-30 08:02:30 +09:00
|
|
|
|
|
|
|
export function createSplashWindow() {
|
|
|
|
const splash = new BrowserWindow({
|
|
|
|
transparent: true,
|
|
|
|
frame: false,
|
|
|
|
height: 350,
|
|
|
|
width: 300,
|
|
|
|
center: true,
|
|
|
|
resizable: false,
|
|
|
|
maximizable: false
|
|
|
|
});
|
|
|
|
|
2023-04-06 00:55:49 +09:00
|
|
|
splash.loadFile(join(STATIC_DIR, "splash.html"));
|
2023-03-30 08:02:30 +09:00
|
|
|
|
|
|
|
return splash;
|
|
|
|
}
|