Added basic menu-bar and about window

This commit is contained in:
Joel Collins 2019-03-24 14:50:54 +00:00
parent 8c9c50b586
commit a821c2b00d
5 changed files with 127 additions and 14 deletions

View file

@ -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,