From 56c09d69a73115c5e43cc7a20aab576d3c5832f6 Mon Sep 17 00:00:00 2001 From: tigerbot Date: Fri, 21 Apr 2017 10:45:57 -0600 Subject: [PATCH] set the name and logo for the window --- index.html | 1 - index.js | 11 ++++++++++- package.json | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 6c33f98..ef06b98 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,6 @@ - Hello World!

Hello World!

diff --git a/index.js b/index.js index 4d34142..3deeae5 100644 --- a/index.js +++ b/index.js @@ -10,7 +10,14 @@ var win; function createWindow () { // Create the browser window. - win = new BrowserWindow({width: 800, height: 600}); + win = new BrowserWindow({ + title: 'Electron Demo', + icon: path.join(__dirname, 'images', 'daplie-logo.png'), + width: 800, + height: 600, + minWidth: 195, + minHeight: 145, + }); var tray = require('./tray'); tray.init(win); @@ -45,6 +52,8 @@ function createWindow () { }); } +app.setName('ElectronDemo'); + // This method will be called when Electron has finished // initialization and is ready to create browser windows. // Some APIs can only be used after this event occurs. diff --git a/package.json b/package.json index a28286d..7ff9ba0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "electron-demo", - "version": "0.0.2", + "version": "0.0.3", "description": "Demo Electron app to use all the 'sexy' features", "maintainers": [ "seth.gibelyou@daplie.com"