diff --git a/resources/icons/icon-test.ico b/resources/icons/icon-test.ico new file mode 100644 index 00000000..d6fd03df Binary files /dev/null and b/resources/icons/icon-test.ico differ diff --git a/src/main/base/win.ts b/src/main/base/win.ts index 548c1a37..7c3094ee 100644 --- a/src/main/base/win.ts +++ b/src/main/base/win.ts @@ -54,6 +54,8 @@ export class Win { vibrancy: "dark", transparent: process.platform === "darwin", hasShadow: false, + show: false, + backgroundColor: "#1E1E1E", webPreferences: { nodeIntegration: true, sandbox: true, @@ -64,7 +66,6 @@ export class Win { plugins: true, nodeIntegrationInWorker: false, webSecurity: false, - preload: path.join(this.paths.srcPath, "./preload/cider-preload.js"), }, }; @@ -89,6 +90,9 @@ export class Win { this.startWebServer(); this.win = new electron.BrowserWindow(this.options); + this.win.on("ready-to-show", () => { + this.win.show(); + }); const ws = new wsapi(this.win) ws.InitWebSockets() // and load the renderer. @@ -156,8 +160,6 @@ export class Win { }); app.get("/", (req, res) => { - - res.render("main", this.EnvironmentVariables); }); diff --git a/src/renderer/style.less b/src/renderer/style.less index c6419c76..adecc4f5 100644 --- a/src/renderer/style.less +++ b/src/renderer/style.less @@ -58,8 +58,9 @@ hr { } body[loading] { - opacity: 0.5; - pointer-events: none; + .app-navigation { + pointer-events: none; + } } body[platform='linux'] {