main: fix themed gui bg color
This commit is contained in:
parent
021e06fd49
commit
086aa09572
1 changed files with 5 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue