diff options
author | 0neGal <mail@0negal.com> | 2021-12-27 03:04:03 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2021-12-27 03:06:02 +0100 |
commit | 8dcc759cf4a5af32c25dc7ad26ffb2c6c258a7ef (patch) | |
tree | 4b8aab612886bf41cfb749f887ef192feebde944 /src/index.js | |
parent | fa94f92e15b5e1e7fe2bcdeb4d74b153cc47c133 (diff) | |
download | Viper-8dcc759cf4a5af32c25dc7ad26ffb2c6c258a7ef.tar.gz Viper-8dcc759cf4a5af32c25dc7ad26ffb2c6c258a7ef.zip |
made the app prettier on windows
I removed the titlebar, which I already had gone on my Linux system,
besides that I also made it so the body of Viper can be held down to
drag it around. And then added an exit button.
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index 6095803..6924b57 100644 --- a/src/index.js +++ b/src/index.js @@ -10,10 +10,12 @@ const cli = require("./cli"); function start() { win = new BrowserWindow({ - width: 500, + width: 600, height: 115, show: false, title: "Viper", + resizable: false, + titleBarStyle: "hidden", webPreferences: { nodeIntegration: true, contextIsolation: false, @@ -25,6 +27,7 @@ function start() { win.webContents.once("dom-ready", () => {win.show()}); ipcMain.on("setpath", (event) => {utils.setpath(win)}) + ipcMain.on("exit", (event) => {process.exit(0)}) } ipcMain.on("launch", (event) => {utils.launch()}) |