From b9771341092d8b4be488af1dd66bbd5162734d80 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Sun, 29 Sep 2019 18:57:24 -0400 Subject: [PATCH] mac menu based on apple specifications fix #165 --- main-electron.js | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/main-electron.js b/main-electron.js index 0226f226..5a8c7cef 100644 --- a/main-electron.js +++ b/main-electron.js @@ -69,6 +69,18 @@ function createWindow() { // Create our menu entries so that we can use MAC shortcuts Menu.setApplicationMenu( Menu.buildFromTemplate([ + { + label: "Sengi", + submenu: [ + { role: "close" }, + { role: 'quit' } + ] + }, + // { + // label: "File", + // submenu: [ + // ] + // }, { label: "Edit", submenu: [ @@ -80,12 +92,14 @@ function createWindow() { { role: "paste" }, { role: "pasteandmatchstyle" }, { role: "delete" }, - { role: "selectall" }, - { type: "separator" }, - { role: "close" }, - { role: 'quit' } + { role: "selectall" } ] }, + // { + // label: "Format", + // submenu: [ + // ] + // }, { label: "View", submenu: [ @@ -102,8 +116,13 @@ function createWindow() { { role: 'togglefullscreen' } ] }, + // { + // label: "Window", + // submenu: [ + // ] + // }, { - role: "help", + role: "Help", submenu: [ { role: "toggledevtools" }, {