Skip to content

Commit

Permalink
Remove menu, update win sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
talyguryn committed Feb 20, 2021
1 parent efe565f commit 2685fc8
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 41 deletions.
81 changes: 41 additions & 40 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const IS_DEV = require('electron-is-dev');

async function createWindow () {
const windowOptions = {
width: IS_DEV ? 956 : 400,
height: 420,
width: IS_DEV ? 956 : 420,
height: 430,
webPreferences: {
nodeIntegration: true
},
Expand All @@ -15,44 +15,45 @@ async function createWindow () {

const win = new BrowserWindow(windowOptions)

const menuBar = Menu.buildFromTemplate([{
label: app.getName(),
submenu: [
{
label: 'About ' + app.getName(),
role: 'about'
},
{
type: 'separator'
},
{
label: 'Hide ' + app.getName(),
accelerator: 'Command+H',
role: 'hide'
},
{
label: 'Hide Others',
accelerator: 'Command+Shift+H',
role: 'hideothers'
},
{
label: 'Show All',
role: 'unhide'
},
{
type: 'separator'
}, {
label: 'Quit',
accelerator: 'CmdOrCtrl+Q',
click: function () {
app.quit();
}
}
],
}]
);

Menu.setApplicationMenu(menuBar);
// const menuBar = Menu.buildFromTemplate([{
// label: app.getName(),
// submenu: [
// {
// label: 'About ' + app.getName(),
// role: 'about'
// },
// {
// type: 'separator'
// },
// {
// label: 'Hide ' + app.getName(),
// accelerator: 'Command+H',
// role: 'hide'
// },
// {
// label: 'Hide Others',
// accelerator: 'Command+Shift+H',
// role: 'hideothers'
// },
// {
// label: 'Show All',
// role: 'unhide'
// },
// {
// type: 'separator'
// }, {
// label: 'Quit',
// accelerator: 'CmdOrCtrl+Q',
// click: function () {
// app.quit();
// }
// }
// ],
// }]
// );
//
// Menu.setApplicationMenu(menuBar);
win.setMenu(null);

win.loadFile('index.html');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tlmaker",
"productName": "Time Lapse Maker",
"version": "0.0.4",
"version": "0.0.5",
"description": "Create amazing videos from separate images",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 2685fc8

Please sign in to comment.