-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
58 lines (50 loc) · 1.22 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
'use strict';
const foregroundColor = '#131325';
const backgroundColor = 'rgba(255, 255, 255, 0.7)';
const mainColor = '#614BBB'
const colors = {
black: '#000000',
white: '#ffffff',
red: '#E70348',
green: '#3AD04E',
blue: '#132C33',
cyan: '#203F50',
yellow: '#CDAC37',
magenta: '#614BBB',
white: '#9F9F9F',
// Light Colors
lightBlack: '#000000',
lightRed: '#E70348',
lightGreen: '#3AD04E',
lightYellow: '#CDAC37',
lightBlue: '#162941',
lightMagenta: '#614BBB',
lightCyan: '#468EA1',
lightWhite: '#ffffff'
}
module.exports.decorateConfig = (config) => {
// New configuration template
const confObj = Object.assign({}, config, {
foregroundColor: foregroundColor,
backgroundColor: backgroundColor,
borderColor: config.mainColor || mainColor,
cursorColor: `${ config.cursorColor || config.mainColor || mainColor }`,
colors,
mainColor: `${config.mainColor || mainColor}`,
termCSS: `
${config.termCSS}
x-screen x-row {
font-variant-ligatures: initial;
}
`,
css: `
${config.css}
`
});
return confObj;
exports.onWindow = (browserWindow) => {
if (confObj.vibrance == true) {
browserWindow.setVibrancy('dark');
}
}
}