set the name and logo for the window
This commit is contained in:
parent
c3caae87c8
commit
56c09d69a7
|
@ -2,7 +2,6 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Hello World!</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello World!</h1>
|
||||
|
|
11
index.js
11
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.
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue