-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.js
85 lines (79 loc) · 1.86 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
// Constants
const backgroundColor = '#0F1419';
const inactiveTabBackgroundColor = '#0c0f12';
const foregroundColor = '#e6e1cf';
// Colors
const RED = '#ff3333';
const GREEN = '#89b73d';
const YELLOW = '#f49c20';
const BLUE = '#3ea7dc';
const MAGENTA = '#b37ed0';
const LIGHT_GRAY = '#f2f2f2';
const DARK_GRAY = '#828c9a'
// 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.decorateConfig = (config) => {
let windowControlsCSS
if (config.showWindowControls) {
windowControlsCSS = '.list_2902 { margin-left: 0 !important; }'
}
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;
}
.header_header {
background: ${backgroundColor} !important;
}
.splitpane_divider {
background-color: rgba(130, 128, 184, 0.5) !important;
}
.tab_tab {
border: 0;
background: ${inactiveTabBackgroundColor};
}
.tabs_list {
background: ${inactiveTabBackgroundColor};
}
.tab_active {
background-color: ${backgroundColor};
}
.tab_textActive {
background-color: ${backgroundColor};
box-shadow: inset 2px 0 0 ${YELLOW};
}
${windowControlsCSS}
`
})
}