Skip to content

Commit

Permalink
Added app icon
Browse files Browse the repository at this point in the history
  • Loading branch information
daneshzaki committed Oct 16, 2020
1 parent bda19a5 commit 46ec16a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Binary file added images/icon.ico
Binary file not shown.
8 changes: 5 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
const { app, BrowserWindow } = require('electron')
const nativeImage = require('electron').nativeImage
const path = require('path');

function createWindow () {
// Create the browser window.
const win = new BrowserWindow({
width: 1250,
height: 550,
icon: __dirname + '/images/icon.ico',
autoHideMenuBar: true,
resizable: true,
fullscreenable:false,
Expand All @@ -16,11 +18,11 @@ function createWindow () {
}
})

//no menu
//no menu
win.removeMenu();
const image = nativeImage.createFromPath('/code/electronjs/kokpitel/images/icon.png');
//const image = nativeImage.createFromPath('/code/electronjs/kokpitel/images/icon.ico');
//set icon
win.setOverlayIcon(image, '');
//win.setOverlayIcon(image, '');

// and load the index.html of the app.
win.loadFile('index.html')
Expand Down

0 comments on commit 46ec16a

Please sign in to comment.