From 086aa09572215f975053deab0497965065a716b1 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sat, 3 Mar 2018 15:19:44 +0100 Subject: [PATCH] main: fix themed gui bg color --- app/main/electron-window.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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,