Electronic splash guard when starting the application

I use Django a lot, and now I play with Electron, because I want to create a desktop application.

I wonder if there is an easy way to create a splash screen (no frame) just to display the logo for a few seconds, and then open the โ€œnormalโ€ window in which the main application will be displayed?

Thanks,

Arno

+6
source share
1 answer

To get a frameless window, simply set the frameless parameter to true when creating a new BrowserWindow , known as the Frameless API :

 const {BrowserWindow} = require('electron'); let win = new BrowserWindow({ width: 800, height: 600, frame: false }); win.show(); 

Just show this window before you show your โ€œmainโ€ application window when the application fires the ready event.

+6
source

All Articles