Control custom title bar using store value

This commit is contained in:
Joel Collins 2019-06-06 14:43:25 +01:00
parent bc8096fe7a
commit e2eb051c31
4 changed files with 65 additions and 21 deletions

View file

@ -5,6 +5,9 @@ const path = require('path')
const openAboutWindow = require('about-window').default
const main = require('./app')
const { store } = require('./store')
const template = [
{
label: 'Edit',
@ -26,7 +29,16 @@ const template = [
{ role: 'forcereload' },
{ role: 'toggledevtools' },
{ type: 'separator' },
{ role: 'togglefullscreen' }
{ role: 'togglefullscreen' },
{ type: 'separator' },
{
type: 'checkbox',
checked: store.get('drawCustomTitleBar'),
label: 'Custom titlebar',
click () {
main.toggleCustomTitleBar()
}
}
]
},
{