mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-17 05:58:41 -09:00
tweak indentation
This commit is contained in:
parent
55ac59c897
commit
9829905bd8
1 changed files with 26 additions and 23 deletions
49
index.js
49
index.js
|
|
@ -86,11 +86,11 @@ app.on('ready', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
rpc.on('unmaximize', () => {
|
rpc.on('unmaximize', () => {
|
||||||
win.unmaximize();
|
win.unmaximize();
|
||||||
});
|
});
|
||||||
|
|
||||||
rpc.on('maximize', () => {
|
rpc.on('maximize', () => {
|
||||||
win.maximize();
|
win.maximize();
|
||||||
});
|
});
|
||||||
|
|
||||||
rpc.on('resize', ({ cols, rows }) => {
|
rpc.on('resize', ({ cols, rows }) => {
|
||||||
|
|
@ -232,31 +232,34 @@ app.on('ready', () => {
|
||||||
role: 'togglefullscreen'
|
role: 'togglefullscreen'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Actual Size',
|
type: 'separator'
|
||||||
accelerator: 'CmdOrCtrl+0',
|
|
||||||
click (item, focusedWindow) {
|
|
||||||
if (focusedWindow) {
|
|
||||||
focusedWindow.rpc.emit('reset font size');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Zoom In',
|
label: 'Actual Size',
|
||||||
accelerator: 'CmdOrCtrl+plus',
|
accelerator: 'CmdOrCtrl+0',
|
||||||
click (item, focusedWindow) {
|
click (item, focusedWindow) {
|
||||||
if (focusedWindow) {
|
if (focusedWindow) {
|
||||||
focusedWindow.rpc.emit('increase font size');
|
focusedWindow.rpc.emit('reset font size');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Zoom Out',
|
label: 'Zoom In',
|
||||||
accelerator: 'CmdOrCtrl+-',
|
accelerator: 'CmdOrCtrl+plus',
|
||||||
click (item, focusedWindow) {
|
click (item, focusedWindow) {
|
||||||
if (focusedWindow) {
|
if (focusedWindow) {
|
||||||
focusedWindow.rpc.emit('decrease font size');
|
focusedWindow.rpc.emit('increase font size');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Zoom Out',
|
||||||
|
accelerator: 'CmdOrCtrl+-',
|
||||||
|
click (item, focusedWindow) {
|
||||||
|
if (focusedWindow) {
|
||||||
|
focusedWindow.rpc.emit('decrease font size');
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue