-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
desktop: move menus into config files and cleanup
Includes menus for linux and windows. They have not been tested yet
- Loading branch information
Showing
5 changed files
with
203 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
'use strict' | ||
|
||
module.exports = [ | ||
{ label: 'eyearesee' | ||
, submenu: [ | ||
{ label: 'About', url: '/about' } | ||
, { label: 'Preferences' | ||
, url: '/settings' | ||
, accelerator: 'CmdOrCtrl+,' | ||
} | ||
, { type: 'separator' } | ||
, { label: 'Quit', accelerator: 'Command+Q', command: 'application:quit' } | ||
] | ||
} | ||
, { label: 'Edit' | ||
, submenu: [ | ||
{ label: 'Undo', accelerator: 'Command+Z', selector: 'undo:' } | ||
, { label: 'Redo', accelerator: 'Shift+Command+Z', selector: 'redo:' } | ||
, { type: 'separator' } | ||
, { label: 'Cut', accelerator: 'Command+X', selector: 'cut:' } | ||
, { label: 'Copy', accelerator: 'Command+C', selector: 'copy:' } | ||
, { label: 'Paste', accelerator: 'Command+V', selector: 'paste:' } | ||
] | ||
} | ||
, { label: 'View' | ||
, submenu: [ | ||
{ label: 'Toggle DevTools', command: 'application:devtools' } | ||
, { type: 'separator' } | ||
, { label: 'Next Panel' | ||
, accelerator: 'CommandOrControl+Alt+Down' | ||
, command: 'application:next-panel' | ||
} | ||
, { label: 'Previous Panel' | ||
, accelerator: 'CommandOrControl+Alt+Up' | ||
, command: 'application:prev-panel' | ||
} | ||
, { label: 'Show Userbar' | ||
, accelerator: 'CommandOrControl+Alt+Left' | ||
, command: 'application:show-userbar' | ||
} | ||
, { label: 'Hide Userbar' | ||
, accelerator: 'CommandOrControl+Alt+Right' | ||
, command: 'application:hide-userbar' | ||
} | ||
] | ||
} | ||
, { label: 'Window' | ||
, submenu: [ | ||
{ label: 'Minimize' | ||
, accelerator: 'Command+M' | ||
, command: 'application:minimize' | ||
} | ||
, { label: 'Maximize', command: 'application:maximize' } | ||
, { label: 'Zoom', command: 'application:zoom' } | ||
] | ||
} | ||
, { label: 'Help' | ||
, submenu: [ | ||
{ label: 'Repository', command: 'application:open-repo' } | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
'use strict' | ||
|
||
module.exports = [ | ||
{ label: 'File' | ||
, submenu: [ | ||
{ label: 'Preferences', url: '/settings', accelerator: 'CmdOrCtrl+,' } | ||
, { label: 'Exit', command: 'application:quit' } | ||
] | ||
} | ||
, { label: 'Edit' | ||
, submenu: [ | ||
{ label: 'Undo', accelerator: 'CmdOrCtrl+Z', role: 'undo' } | ||
, { label: 'Redo', accelerator: 'Shift+CmdOrCtrl+Z', role: 'redo' } | ||
, { type: 'separator' } | ||
, { label: 'Cut', accelerator: 'CmdOrCtrl+X', role: 'cut' } | ||
, { label: 'Copy', accelerator: 'CmdOrCtrl+C', role: 'copy' } | ||
, { label: 'Paste', accelerator: 'CmdOrCtrl+V', role: 'paste' } | ||
] | ||
} | ||
, { label: 'View' | ||
, submenu: [ | ||
{ label: 'Toggle DevTools', command: 'application:devtools' } | ||
, { type: 'separator' } | ||
, { label: 'Next Panel' | ||
, accelerator: 'CmdOrCtrl+Alt+Down' | ||
, command: 'application:next-panel' | ||
} | ||
, { label: 'Previous Panel' | ||
, accelerator: 'CmdOrCtrl+Alt+Up' | ||
, command: 'application:prev-panel' | ||
} | ||
, { label: 'Show Userbar' | ||
, accelerator: 'CmdOrCtrl+Alt+Left' | ||
, command: 'application:show-userbar' | ||
} | ||
, { label: 'Hide Userbar' | ||
, accelerator: 'CmdOrCtrl+Alt+Right' | ||
, command: 'application:hide-userbar' | ||
} | ||
] | ||
} | ||
, { label: 'Help' | ||
, submenu: [ | ||
{ label: 'About', url: '/about' } | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
'use strict' | ||
|
||
module.exports = [ | ||
{ label: 'File' | ||
, submenu: [ | ||
{ label: 'Preferences', url: '/settings', accelerator: 'CmdOrCtrl+,' } | ||
, { label: 'Exit', command: 'application:quit' } | ||
] | ||
} | ||
, { label: 'Edit' | ||
, submenu: [ | ||
{ label: 'Undo', accelerator: 'CmdOrCtrl+Z', role: 'undo' } | ||
, { label: 'Redo', accelerator: 'Shift+CmdOrCtrl+Z', role: 'redo' } | ||
, { type: 'separator' } | ||
, { label: 'Cut', accelerator: 'CmdOrCtrl+X', role: 'cut' } | ||
, { label: 'Copy', accelerator: 'CmdOrCtrl+C', role: 'copy' } | ||
, { label: 'Paste', accelerator: 'CmdOrCtrl+V', role: 'paste' } | ||
] | ||
} | ||
, { label: 'View' | ||
, submenu: [ | ||
{ label: 'Toggle DevTools', command: 'application:devtools' } | ||
, { type: 'separator' } | ||
, { label: 'Next Panel' | ||
, accelerator: 'CmdOrCtrl+Alt+Down' | ||
, command: 'application:next-panel' | ||
} | ||
, { label: 'Previous Panel' | ||
, accelerator: 'CmdOrCtrl+Alt+Up' | ||
, command: 'application:prev-panel' | ||
} | ||
, { label: 'Show Userbar' | ||
, accelerator: 'CmdOrCtrl+Alt+Left' | ||
, command: 'application:show-userbar' | ||
} | ||
, { label: 'Hide Userbar' | ||
, accelerator: 'CmdOrCtrl+Alt+Right' | ||
, command: 'application:hide-userbar' | ||
} | ||
] | ||
} | ||
, { label: 'Help' | ||
, submenu: [ | ||
{ label: 'About', url: '/about' } | ||
] | ||
} | ||
] |