From 77d2f203f88b959412812fd4c82cc838d8118411 Mon Sep 17 00:00:00 2001 From: bluethefoxofficial <47904806+bluethefoxofficial@users.noreply.github.com> Date: Fri, 10 Dec 2021 03:09:02 +0000 Subject: [PATCH] . . --- app.js | 4 ++++ renderer.js | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/app.js b/app.js index a1e5fa9..66a7ab3 100644 --- a/app.js +++ b/app.js @@ -10,6 +10,10 @@ function handleSquirrelEvent(application) { const ChildProcess = require('child_process'); const path = require('path'); + + + if (require('electron-squirrel-startup')) return; + const appFolder = path.resolve(process.execPath, '..'); const rootAtomFolder = path.resolve(appFolder, '..'); const updateDotExe = path.resolve(path.join(rootAtomFolder, 'Update.exe')); diff --git a/renderer.js b/renderer.js index 032f881..818b4ff 100644 --- a/renderer.js +++ b/renderer.js @@ -3,10 +3,22 @@ const { Color } = require('custom-electron-titlebar'); const customTitlebar = require('custom-electron-titlebar'); const path = require('path'); + + + + + + + + + const tb = new customTitlebar.Titlebar({ icon: '../resources/icons/icon.png', backgroundColor: Color.BLACK, + }); + +tb.updateMenu(null); //customTitlebar.updateBackground(new Color(new RGBA(0, 0, 0, .3))); //rgba is not working here, what the fuck. tb.backgroundColor = Color.RED;