Added basic menu-bar and about window
This commit is contained in:
parent
8c9c50b586
commit
a821c2b00d
5 changed files with 127 additions and 14 deletions
13
app.dev.js
13
app.dev.js
|
|
@ -1,20 +1,21 @@
|
|||
const electron = require('electron')
|
||||
const contextMenu = require('electron-context-menu')
|
||||
const path = require('path')
|
||||
|
||||
const app = electron.app
|
||||
const BrowserWindow = electron.BrowserWindow
|
||||
const contextMenu = require('electron-context-menu');
|
||||
|
||||
let url = 'http://localhost:8080/'
|
||||
|
||||
// Set the application menu
|
||||
require('./menu.js')
|
||||
|
||||
app.on('ready', () => {
|
||||
let window = new BrowserWindow({
|
||||
width: 1124,
|
||||
height: 800,
|
||||
// Remove the window frame from windows applications
|
||||
//frame: false,
|
||||
// Hide the titlebar from MacOS applications while keeping the stop lights
|
||||
//titleBarStyle: 'hidden', // or 'customButtonsOnHover',
|
||||
icon: path.join(__dirname, '/icons/png/64x64.png')
|
||||
})
|
||||
//window.setMenu(null);
|
||||
|
||||
contextMenu({
|
||||
showCopyImageAddress: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue