git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 6a197b12680504c06ada2bc4d50241dabc1cf032

use view roles instead of hardcoded

Matt McKegg committed on 3/13/2017, 2:34:54 AM
Parent: daf9454b6bd3dc780561f4c2806d2b75f64e1238

Files changed

index.jschanged
index.jsView
@@ -23,17 +23,18 @@
2323 server: !(process.argv.includes('-g') || process.argv.includes('--use-global-ssb'))
2424 }, () => {
2525 var menu = defaultMenu(electron.app, electron.shell)
2626 var view = menu.find(x => x.label === 'View')
27- view.submenu.push({
28- label: 'Zoom In',
29- accelerator: 'CmdOrCtrl+=',
30- role: 'zoomin'
31- }, {
32- label: 'Zoom Out',
33- accelerator: 'CmdOrCtrl+-',
34- role: 'zoomout'
35- })
27+ view.submenu = [
28+ { role: 'reload' },
29+ { role: 'toggledevtools' },
30+ { type: 'separator' },
31+ { role: 'resetzoom' },
32+ { role: 'zoomin' },
33+ { role: 'zoomout' },
34+ { type: 'separator' },
35+ { role: 'togglefullscreen' }
36+ ]
3637 Menu.setApplicationMenu(Menu.buildFromTemplate(menu))
3738 openMainWindow()
3839 })
3940

Built with git-ssb-web