-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
86 lines (73 loc) · 1.75 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
const colors = {
lightWhite: '#0B210A',
lightRed: '#d7242e',
lightGreen: '#00a09a',
lightYellow: '#e76d18',
lightBlue: '#3F76BC',
lightMagenta: '#AC82B4',
lightCyan: '#71BF67',
lightBlack: '#f0d2e3',
white: '#1D2B1A',
red: '#E42C36',
green: '#00ABAB',
yellow: '#ED7827',
blue: '#3a83e0',
magenta: '#b88bc1',
cyan: '#79C475',
black: '#f0dae7'
};
exports.decorateConfig = (config) => {
// New configuration template
const confObj = Object.assign({}, config, {
foregroundColor: '#0B210A',
backgroundColor: config.backgroundOpacity ? `rgba(253,254,254,${ config.backgroundOpacity })` : '#FDFEFE',
borderColor: '#CDC19E',
cursorColor: '#96E0F9',
theme: `${ config.theme || '' }`,
colors,
css: `
${config.css || ''}
.hyper_main {
border: none;
}
.tabs_borderShim {
display: none;
}
.tab_icon {
color: #000000;
}
.tab_icon:hover {
color: #000000;
background-color: rgba(0,0,0,.04)
}
.tab_tab{
border: none;
color: #444444;
background-color: #EBEBEC;
}
.tab_tab:hover {
color: #222222;
}
.tab_tab.tab_active {
color: #444444;
background-color: rgba(253,254,254,${ config.backgroundOpacity || '1' });
}
.tab_tab.tab_active:hover {
color: #222222;
}
.tab_textInner {
text-overflow: ellipsis;
overflow: hidden;
max-width: 100%;
padding: 0px 24px 0 8px;
}
`
});
// Check the enableVibrance setting and update background color
exports.onWindow = (browserWindow) => {
if (confObj.enableVibrance == true) {
browserWindow.setVibrancy('dark');
}
};
return confObj;
}