set the name and logo for the window

This commit is contained in:
tigerbot 2017-04-21 10:45:57 -06:00
parent c3caae87c8
commit 56c09d69a7
3 changed files with 11 additions and 3 deletions

View File

@ -2,7 +2,6 @@
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Hello World!</title>
</head> </head>
<body> <body>
<h1>Hello World!</h1> <h1>Hello World!</h1>

View File

@ -10,7 +10,14 @@ var win;
function createWindow () { function createWindow () {
// Create the browser window. // 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'); var tray = require('./tray');
tray.init(win); tray.init(win);
@ -45,6 +52,8 @@ function createWindow () {
}); });
} }
app.setName('ElectronDemo');
// This method will be called when Electron has finished // This method will be called when Electron has finished
// initialization and is ready to create browser windows. // initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs. // Some APIs can only be used after this event occurs.

View File

@ -1,6 +1,6 @@
{ {
"name": "electron-demo", "name": "electron-demo",
"version": "0.0.2", "version": "0.0.3",
"description": "Demo Electron app to use all the 'sexy' features", "description": "Demo Electron app to use all the 'sexy' features",
"maintainers": [ "maintainers": [
"seth.gibelyou@daplie.com" "seth.gibelyou@daplie.com"