-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
110 lines (106 loc) · 2.36 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
'use strict'
const bg = "#1b2b34"
const black = "#0f1c23"
const red = "#ed6f7d"
const green = "#99c794"
const yellow = "#fac863"
const blue = "#5a9bcf"
const magenta = "#c5a5c5"
const cyan = "#5fb3b3"
const white = "#d8dee9"
const lightBlack = "#65737e"
const lightRed = "#D6838C"
const lightGreen = "#C1DCBE"
const lightYellow = "#FFDE9B"
const lightBlue = "#8ABEE7"
const lightMagenta = "#EDCDED"
const lightCyan = "#9BE2E2"
const lightWhite = "#ffffff"
const colors = {
black,
red,
green,
yellow,
blue,
magenta,
cyan,
white,
lightBlack,
lightRed,
lightGreen,
lightYellow,
lightBlue,
lightMagenta,
lightCyan,
lightWhite
}
module.exports.decorateConfig = config => {
const backgroundColor = bg
const foregroundColor = white
const cursorColor = cyan
const borderColor = bg
const selectionColor = 'rgba(95, 179, 169, .3)'
const tabNavBg = black
const tabText = lightBlack
const tabTextActive = white
const dividerBg = black
return Object.assign({}, config, {
foregroundColor,
backgroundColor,
borderColor,
cursorColor,
selectionColor,
colors,
termCSS: `
${config.termCSS || ''}
.terminal a {
color: ${cyan};
}
`,
css: `
#hyper {
border: 1px solid ${borderColor};
}
.tabs_nav {
background-color: ${tabNavBg};
border-bottom: 1px solid ${borderColor};
}
/* hide the tab border shim, we are providing our own */
.tabs_borderShim {
border-bottom-width: 0px;
}
/* Hide title when only one tab */
.tabs_title {
background-color: ${backgroundColor};
}
.tab_textInner {
color: ${tabText};
font-weight: 500;
}
.tab_tab{
border-left-color: ${tabNavBg} !important
border-left-width: 3px;
}
.tab_tab.tab_active {
background-color: ${backgroundColor};
border-left-color: ${cursorColor} !important;
border-left-width: 3px;
}
.tab_tab.tab_active .tab_textInner {
color: ${tabTextActive};
}
.tab_icon {
border-radius: 3px;
background: ${backgroundColor};
transition: all .2s;
}
.tab_icon:hover {
background: ${tabNavBg};
}
#hyper .splitpane_divider {
background-color: ${dividerBg} !important;
}
${config.css || ''}
`
})
}