1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

updated the zoom logic for the zoom in/out menu items so that if you zoom it reflects in the status bar and the config. Also added an actual size / zoom reset menu item for convenience.

This commit is contained in:
William Grant
2018-11-11 12:59:50 +02:00
parent fdb1ef540d
commit e2c7a8c384
2 changed files with 52 additions and 3 deletions

View File

@@ -310,11 +310,25 @@ const view = {
type: 'separator'
},
{
role: 'zoomin',
accelerator: macOS ? 'CommandOrControl+Plus' : 'Control+='
label: 'Actual Size',
accelerator: macOS ? 'CommandOrControl+0' : 'Control+0',
click () {
mainWindow.webContents.send('status:zoomreset')
}
},
{
role: 'zoomout'
label: 'Zoom In',
accelerator: macOS ? 'CommandOrControl+=' : 'Control+=',
click () {
mainWindow.webContents.send('status:zoomin')
}
},
{
label: 'Zoom Out',
accelerator: macOS ? 'CmdOrCtrl+-' : 'Control+-',
click () {
mainWindow.webContents.send('status:zoomout')
}
}
]
}