mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Merge pull request #164 from bkjohnson/master
Minor accelerator updates
This commit is contained in:
@@ -86,6 +86,10 @@
|
|||||||
p
|
p
|
||||||
line-height 1.2
|
line-height 1.2
|
||||||
|
|
||||||
|
colorDarkControl()
|
||||||
|
border-color $ui-dark-borderColor
|
||||||
|
background-color $ui-dark-backgroundColor
|
||||||
|
color $ui-dark-text-color
|
||||||
body[data-theme="dark"]
|
body[data-theme="dark"]
|
||||||
.root
|
.root
|
||||||
color $ui-dark-text-color
|
color $ui-dark-text-color
|
||||||
@@ -108,6 +112,7 @@ body[data-theme="dark"]
|
|||||||
.group-control-rightButton
|
.group-control-rightButton
|
||||||
colorDarkPrimaryButton()
|
colorDarkPrimaryButton()
|
||||||
.group-hint
|
.group-hint
|
||||||
border-color $ui-dark-borderColor
|
colorDarkControl()
|
||||||
background-color $ui-dark-backgroundColor
|
.group-section-control
|
||||||
color $ui-dark-text-color
|
select, .group-section-control-input
|
||||||
|
colorDarkControl()
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ var file = {
|
|||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: 'New Note',
|
label: 'New Note',
|
||||||
accelerator: OSX ? 'Command + N' : 'Control + N',
|
accelerator: 'CmdOrCtrl + N',
|
||||||
click: function () {
|
click: function () {
|
||||||
mainWindow.webContents.send('top:new-note')
|
mainWindow.webContents.send('top:new-note')
|
||||||
}
|
}
|
||||||
@@ -125,20 +125,14 @@ var view = {
|
|||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: 'Reload',
|
label: 'Reload',
|
||||||
accelerator: (function () {
|
accelerator: 'CmdOrCtrl+R',
|
||||||
if (process.platform === 'darwin') return 'Command+R'
|
|
||||||
else return 'Ctrl+R'
|
|
||||||
})(),
|
|
||||||
click: function () {
|
click: function () {
|
||||||
BrowserWindow.getFocusedWindow().reload()
|
BrowserWindow.getFocusedWindow().reload()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Toggle Developer Tools',
|
label: 'Toggle Developer Tools',
|
||||||
accelerator: (function () {
|
accelerator: OSX ? 'Command+Alt+I' : 'Ctrl+Shift+I',
|
||||||
if (process.platform === 'darwin') return 'Command+Alt+I'
|
|
||||||
else return 'Ctrl+Shift+I'
|
|
||||||
})(),
|
|
||||||
click: function () {
|
click: function () {
|
||||||
BrowserWindow.getFocusedWindow().toggleDevTools()
|
BrowserWindow.getFocusedWindow().toggleDevTools()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user