Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
.
  • Loading branch information
bluethefoxofficial committed Dec 10, 2021
1 parent 833ebda commit 77d2f20
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
12 changes: 12 additions & 0 deletions renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 77d2f20

Please sign in to comment.