-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.js
71 lines (67 loc) · 1.54 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
59
60
61
62
63
64
65
66
67
68
69
70
71
// Constants
const backgroundColor = 'rgba(4, 9, 15, 0.75)';
const foregroundColor = '#cbcfd4';
// Colors
const RED = '#de4f55';
const GREEN = '#38dec9';
const YELLOW = '#f0c981';
const BLUE = '#81629e';
const MAGENTA = '#dbbfe3';
const LIGHT_GRAY = '#f2f2f2';
const DARK_GRAY = '#596a86'
// Mapped Colors
const colors = {
black: backgroundColor,
red: RED,
green: GREEN,
yellow: YELLOW,
blue: BLUE,
magenta: MAGENTA,
cyan: BLUE,
white: LIGHT_GRAY,
lightBlack: DARK_GRAY,
lightRed: RED,
lightGreen: GREEN,
lightYellow: YELLOW,
lightBlue: BLUE,
lightMagenta: MAGENTA,
lightCyan: BLUE,
colorCubes: '#fff',
grayscale: foregroundColor
};
// Additional Constants
const cursorColor = YELLOW;
const borderColor = backgroundColor;
exports.onWindow = browserWindow => browserWindow.setVibrancy('dark');
exports.decorateConfig = (config) => {
return Object.assign({}, config, {
foregroundColor,
backgroundColor,
borderColor,
cursorColor,
colors,
css: `
${config.css || ''}
.cursor-node {
background-color: ${MAGENTA} !important;
border-color: ${MAGENTA} !important;
}
.hyper_main {
border: none !important;
background: ${backgroundColor} !important;
}
.header_header {
background: rgba(4, 9, 15, 0.1) !important;
}
.splitpane_divider {
background-color: rgba(4, 9, 15, 0.35) !important;
}
.tab_tab {
border: 0;
}
.tab_textActive {
border-bottom: 2px solid ${BLUE};
}
`
})
}