launcher: fix bg color & disable menu bar before loading url

This commit is contained in:
jean-emmanuel 2018-03-01 21:13:11 +01:00
parent 57e9d00fb0
commit 8bfdcd77ba
2 changed files with 3 additions and 3 deletions

View file

@ -54,10 +54,10 @@ module.exports = function(options={}) {
window = null
})
window.loadURL(options.address)
window.setMenu(null)
window.loadURL(options.address)
if (options.shortcuts) {
shortcut.register(window,'CmdOrCtrl+R',function(){

View file

@ -66,7 +66,7 @@ if (settings.cli) {
launcher
app.on('ready',function(){
launcher = require('./electron-window')({address:address, shortcuts:false, width:680, height:(100 + 8*3 + 29 * Object.keys(settings.options).filter(x => settings.options[x].launcher !== false).length), node:true, color:'#283143'})
launcher = require('./electron-window')({address:address, shortcuts:false, width:680, height:(100 + 8*3 + 29 * Object.keys(settings.options).filter(x => settings.options[x].launcher !== false).length), node:true, color:'#253040'})
})
if (process.log) {