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:
@@ -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')
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user