index: allow plugin authors to affect initial config

This commit is contained in:
Guillermo Rauch 2016-07-16 11:58:41 -07:00
parent e8eb170204
commit ebb0b7f1d2

View file

@ -44,14 +44,15 @@ let winCount = 0;
app.on('ready', () => {
function createWindow (fn) {
let win = new BrowserWindow({
const cfg = plugins.getDecoratedConfig();
const win = new BrowserWindow({
width: 540,
height: 380,
minHeight: 190,
minWidth: 370,
titleBarStyle: 'hidden-inset',
title: 'HyperTerm',
backgroundColor: toHex(config.getConfig().backgroundColor || '#000'),
backgroundColor: toHex(cfg.backgroundColor || '#000'),
transparent: true,
// we only want to show when the prompt
// is ready for user input