diff options
Diffstat (limited to 'app.js')
-rwxr-xr-x | app.js | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -23,6 +23,7 @@ function openFileDialog() { function createWindow() { // Create the browser window. mainWindow = new BrowserWindow({ + icon: 'img/favicon.png', width: 1280, height: 1024, webPreferences: { @@ -36,24 +37,27 @@ function createWindow() { { label: 'File', submenu: [ - {label: 'Open...', click: () => { - openFileDialog(); - }}, + {label: 'Open...', accelerator: 'Ctrl+O', click: () => { openFileDialog(); }}, + {label: 'Close', click: () => { mainWindow.webContents.send("close-file"); }}, + {type: 'separator'}, {label: 'Exit', click: () => { app.quit(); }} ] }, { label: 'Location', submenu: [ - {label: 'Go to...', click: () => { mainWindow.webContents.send("open-location"); }}, + {label: 'Go to...', accelerator: 'Ctrl+G', click: () => { mainWindow.webContents.send("open-location"); }}, {label: 'Sync to last page read', click: () => { mainWindow.webContents.send("sync-to-last"); }}, + {type: 'separator'}, + {label: 'Clear last read', click: () => { mainWindow.webContents.send("clear-last-read"); }}, + {label: 'Mark as read', accelerator: 'Ctrl+M', click: () => { mainWindow.webContents.send("mark-as-read"); }}, ] }, { label: 'Tools', submenu: [ - {label: 'Settings', click: () => { mainWindow.webContents.send("open-settings"); }}, - {label: 'Toggle fullscreen', click: () => { mainWindow.setFullScreen(!mainWindow.isFullScreen()); }}, + {label: 'Options', click: () => { mainWindow.webContents.send("open-settings"); }}, + {label: 'Toggle fullscreen', accelerator: 'F11', click: () => { mainWindow.setFullScreen(!mainWindow.isFullScreen()); }}, ] }, ]); |