added icon on main windows

This commit is contained in:
Nicolas Constant 2020-10-01 21:42:30 -04:00
parent 23abf0e0b7
commit 0d1a2e59d4
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
const { join } = require("path");
const { app, Menu, MenuItem, BrowserWindow, shell } = require("electron");
// Keep a global reference of the window object, if you don't, the window will
@ -10,6 +11,8 @@ function createWindow() {
width: 377,
height: 800,
title: "Sengi",
//icon: join(__dirname, '/src/assets/icons/icon-512x512.png'),
icon: join(__dirname, '/assets/icons/win/icon.ico'),
backgroundColor: "#131925",
useContentSize: true,
webPreferences: {