git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit a71cfb1b1b30fb689555eb98234631ac97182682

Add custom Window menu with Zoom option (#526)

William Meleyal authored on 5/7/2017, 10:22:55 PM
Mikey committed on 5/7/2017, 10:22:55 PM
Parent: f51f34e305baef50a85422e634e4469dc1459ec5

Files changed

index.jschanged
index.jsView
@@ -33,8 +33,18 @@
3333 { role: 'zoomout' },
3434 { type: 'separator' },
3535 { role: 'togglefullscreen' }
3636 ]
37+ if (process.platform === 'darwin') {
38+ var win = menu.find(x => x.label === 'Window')
39+ win.submenu = [
40+ { role: 'minimize' },
41+ { role: 'zoom' },
42+ { role: 'close', label: 'Close' },
43+ { type: 'separator' },
44+ { role: 'front' }
45+ ]
46+ }
3747 Menu.setApplicationMenu(Menu.buildFromTemplate(menu))
3848 openMainWindow()
3949 })
4050

Built with git-ssb-web