-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
94 lines (91 loc) · 2.19 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
87
88
89
90
91
92
93
94
const backgroundColor = '#f3f3f3'
const foregroundColor = '#6E7278'
const cursorColor = '#6E7278'
const borderColor = '#f3f3f3'
const colors = {
lightBlack: "#6E7278",
black: "#333333",
lightGreen: "#57D57F",
green: "#00C642",
lightYellow: "#FFCD3A",
yellow: "#9E7800",
white: "#eee8d5",
lightWhite: "#fdf6e3",
lightRed: "#CB3837",
red: "#CB3837",
magenta: "#782176",
lightMagenta: "#C836C3",
lightBlue: "#8A56FF",
blue: "#28008A",
lightCyan: "#2AA198",
cyan: "#2AA198"
};
exports.decorateConfig = config => {
return Object.assign({}, config, {
foregroundColor,
backgroundColor,
borderColor,
cursorColor,
colors,
termCSS: `
${config.termCSS || ''}
`,
css: `
${config.css || ''}
* {
text-rendering: optimizeLegibility;
font-weight: 500;
}
.tabs_list {
border: 0;
}
.tabs_nav {
background-color: #f3f3f3;
color: ${foregroundColor};
}
.tabs_title{
color: ${colors.yellow};
}
.tab_tab:nth-child(4n+1) {
color: ${colors.yellow};
}
.tab_tab:nth-child(4n+2) {
color: ${colors.red};
}
.tab_tab:nth-child(4n+3) {
color: ${colors.magenta};
}
.tab_tab:nth-child(4n+4) {
color: ${colors.blue};
}
.tab_tab:nth-child(4n+1).tab_active {
color: ${colors.yellow};
background-color:#FFF5DB;
border-bottom: 2px solid ${colors.yellow} !important;
}
.tab_tab:nth-child(4n+2).tab_active{
font-weight: 700;
color: ${colors.red};
background-color: #fdd8d6;
border-bottom: 2px solid ${colors.lightRed} !important;
}
.tab_tab:nth-child(4n+3).tab_active {
font-weight: 700;
color: ${colors.magenta};
background-color: #F6D8F4;
border-bottom: 2px solid ${colors.lightMagenta} !important;
}
.tab_tab:nth-child(4n+4).tab_active {
color: ${colors.blue};
background-color: #E8DEFF
border-bottom: 2px solid ${colors.lightBlue} !important;
}
.tab_tab:before {
border: 0;
}
.splitpane_divider {
background-color: ${colors.red};
}
`
})
}