diff --git a/app/main/electron-window.js b/app/main/electron-window.js index 4728e0cd..7ddf565d 100644 --- a/app/main/electron-window.js +++ b/app/main/electron-window.js @@ -3,14 +3,16 @@ var path = require('path'), shortcut = require('electron-localshortcut'), settings = require('./settings') -var bgColor = settings.read('theme') && settings.read('theme').indexOf('--color-bg:') != -1 ? - settings.read('theme').match(/--color-bg:([^;]*);/)[1].trim() - : '#191f2a' module.exports = function(options={}) { var window + var theme = settings.read('theme'), + bgColor = theme && theme.join('\n').indexOf('--color-bg:') != -1 ? + theme.join('\n').match(/--color-bg:([^;]*);/)[1].trim() + : '#191f2a' + window = new BrowserWindow({ width: options.width || 800, height: options.height || 600,