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;