Skip to content

Commit

Permalink
add: Zoom menu
Browse files Browse the repository at this point in the history
  • Loading branch information
hiro0218 committed Jun 6, 2018
1 parent 1020e0e commit 9872cdb
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions src/renderer/modules/menu.js
Expand Up @@ -72,21 +72,34 @@ export default {
label: 'Toggle Preview Panel',
type: 'checkbox',
checked: true,
// accelerator: '',
click: function(item, focusedWindow) {
self.togglePreview();
},
},
{ type: 'separator' },
{
label: 'Toggle Full Screen',
accelerator: (function() {
return OSX ? 'Ctrl+Command+F' : 'F11';
})(),
click: function(item, focusedWindow) {
focusedWindow.setFullScreen(!focusedWindow.isFullScreen());
},
role: 'togglefullscreen',
},
{ type: 'separator' },
{
label: 'Zoom',
submenu: [
{
label: 'Zoom In',
role: 'zoomIn',
},
{
label: 'Zoom Out',
role: 'zoomOut',
},
{ type: 'separator' },
{
label: 'Actual Size',
role: 'resetZoom',
},
],
},
{ type: 'separator' },
{
label: 'Always on Top',
accelerator: 'CmdOrCtrl+Shift+T',
Expand Down

0 comments on commit 9872cdb

Please sign in to comment.