This repository has been archived by the owner on Jan 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
85 lines (82 loc) · 1.99 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
const zenit = {
zenit0: "000",
zenit1: "#0d0d0d",
zenit2: "#111",
zenit3: "#333",
zenit4: "#aaa",
zenit5: '#f00',
zenit6: "#fff",
};
const bgColor = zenit.zenit0;
const selection = zenit.zenit1
const fgColor = zenit.zenit4
const cursorColor = zenit.zenit6;
const borderColor = zenit.zenit1;
exports.decorateConfig = config => {
return Object.assign({}, config, {
fgColor,
bgColor,
borderColor,
cursorColor: config.cursorColor || cursorColor,
// colors,
termCSS: `
${config.termCSS || ""}
.terminal .xterm-selection div {
background: ${selection} !important;
}
.terminal-cursor {
border-left-width: 2px;
}
`,
css: `
${config.css || ""}
* {
text-rendering: optimizeLegibility !important;
}
.header_header {
background-color: ${bgColor} !important;
top: 0 !important;
right: 0 !important;
left: 0 !important;
}
.terminal .xterm-selection div {
background: ${selection} !important;
}
.tab_first {
margin-left: 0 !important;
padding: 0 !important;
}
.tabs_list,
.tab_tab {
border: 0 !important;
}
.tab_tab {
color: ${fgColor} !important;
transition: color 400ms ease, background 400ms ease;
}
.tab_tab.tab_active,
.tab_tab:hover {
background-color: ${zenit.zenit0};
}
.splitpane_divider {
background-color: ${zenit.zenit1} !important;
}
// plugin support
// hyper-statusline
.footer_footer {
background-color: ${zenit.zenit1};
transition: opacity 400ms ease;
}
.footer_footer .item_item {
color: ${zenit.zenit3};
}
.footer_footer .item_icon.icon_dirty {
background-color: ${zenit.zenit3};
}
.footer_footer .item_icon.icon_pull,
.footer_footer .item_icon.icon_push {
background-color: ${zenit.zenit3};
}
`
});
};