|
| 1 | +module.exports.onWindow = browserWindow => |
| 2 | + browserWindow.setVibrancy("ultra-dark"); |
| 3 | + |
| 4 | +const backgroundColor = "rgba(0, 0, 0, .65)"; |
| 5 | +const overlap = "rgba(0, 0, 0, .15)"; |
| 6 | + |
| 7 | +const colors = { |
| 8 | + "editorCursor.foreground": "#7e57c2", |
| 9 | + "tab.activeBackground": "#0b2942", |
| 10 | + "tab.activeForeground": "#d2dee7", |
| 11 | + "tab.border": "#272B3B", |
| 12 | + "tab.activeBorder": "#262A39", |
| 13 | + "tab.inactiveBackground": "#010e1a", |
| 14 | + "tab.inactiveForeground": "#5f7e97", |
| 15 | + "terminal.ansiWhite": "#ffffff", |
| 16 | + "terminal.ansiBlack": "#011627", |
| 17 | + "terminal.ansiBlue": "#82AAFF", |
| 18 | + "terminal.ansiCyan": "#7fdbca", |
| 19 | + "terminal.ansiGreen": "#ba67db", |
| 20 | + "terminal.ansiMagenta": "#C792EA", |
| 21 | + "terminal.ansi#5f7e97": "#7fdbca", |
| 22 | + "terminal.ansiYellow": "#addb67", |
| 23 | + "terminal.ansiBrightWhite": "#ffffff", |
| 24 | + "terminal.ansiBrightBlack": "#575656", |
| 25 | + "terminal.ansiBrightBlue": "#82AAFF", |
| 26 | + "terminal.ansiBrightCyan": "#7fdbca", |
| 27 | + "terminal.ansiBrightGreen": "#addb67", |
| 28 | + "terminal.ansiBrightMagenta": "#C792EA", |
| 29 | + "terminal.ansiBright#5f7e97": "#7fdbca", |
| 30 | + "terminal.ansiBrightYellow": "#addb67" |
| 31 | +}; |
| 32 | + |
| 33 | +exports.decorateConfig = config => |
| 34 | + Object.assign({}, config, { |
| 35 | + backgroundColor, |
| 36 | + foregroundColor: colors["terminal.ansiWhite"], |
| 37 | + borderColor: overlap, |
| 38 | + cursorColor: colors["editorCursor.foreground"], |
| 39 | + colors: { |
| 40 | + black: colors["terminal.ansiBlack"], |
| 41 | + red: colors["terminal.ansiMagenta"], |
| 42 | + green: colors["terminal.ansiGreen"], |
| 43 | + yellow: colors["terminal.ansiYellow"], |
| 44 | + blue: colors["terminal.ansiBlue"], |
| 45 | + magenta: colors["terminal.ansiMagenta"], |
| 46 | + cyan: colors["terminal.ansiCyan"], |
| 47 | + white: colors["terminal.ansiBrightWhite"], |
| 48 | + lightBlack: colors["terminal.ansiBrightBlack"], |
| 49 | + lightRed: colors["terminal.ansiBrightMagenta"], |
| 50 | + lightGreen: colors["terminal.ansiBrightGreen"], |
| 51 | + lightYellow: colors["terminal.ansiBrightYellow"], |
| 52 | + lightBlue: colors["terminal.ansiBrightBlue"], |
| 53 | + lightMagenta: colors["terminal.ansiBrightMagenta"], |
| 54 | + lightCyan: colors["terminal.ansiBrightCyan"], |
| 55 | + lightWhite: colors["terminal.ansiBrightWhite"] |
| 56 | + }, |
| 57 | + css: ` |
| 58 | + ${config.css} |
| 59 | + .hyper_main { |
| 60 | + border: none !important; |
| 61 | + } |
| 62 | + .header_header { |
| 63 | + background-color: ${overlap} !important; |
| 64 | + } |
| 65 | + .tabs_borderShim { |
| 66 | + border-color: transparent !important; |
| 67 | + } |
| 68 | + .tab_tab { |
| 69 | + border: 0; |
| 70 | + background-color: ${colors["tab.inactiveBackground"]}; |
| 71 | + color: ${colors["tab.inactiveForeground"]}; |
| 72 | + } |
| 73 | + .tab_tab::before { |
| 74 | + background-color: ${colors["tab.border"]}; |
| 75 | + } |
| 76 | + .tab_active { |
| 77 | + background-color: ${colors["tab.activeBackground"]}; |
| 78 | + color: ${colors["tab.activeForeground"]}; |
| 79 | + } |
| 80 | + .tab_active::before { |
| 81 | + background-color: ${colors["tab.activeBorder"]}; |
| 82 | + } |
| 83 | + .tab_text { |
| 84 | + background-color: ${colors["tab.inactiveBackground"]}; |
| 85 | + color: ${colors["tab.inactiveForeground"]}; |
| 86 | + } |
| 87 | + .tab_textActive { |
| 88 | + background-color: ${colors["tab.activeBackground"]}; |
| 89 | + color: ${colors["tab.activeForeground"]}; |
| 90 | + } |
| 91 | + .hyper-search-wrapper { |
| 92 | + border: 0 !important; |
| 93 | + padding: 0 !important; |
| 94 | + background-color: transparent !important; |
| 95 | + display: flex; |
| 96 | + opacity: 0.8 !important; |
| 97 | + } |
| 98 | + .hyper-search-wrapper button { |
| 99 | + top: 0 !important; |
| 100 | + opacity: 0.8 !important; |
| 101 | + padding: 0 6px; |
| 102 | + cursor: pointer; |
| 103 | + } |
| 104 | + .hyper-search-wrapper button:hover { |
| 105 | + opacity: 1.0 !important; |
| 106 | + } |
| 107 | + .hyper-search-wrapper button:nth-of-type(1) { |
| 108 | + border-radius: 4px 0 0 4px !important; |
| 109 | + border-right: 1px solid ${colors["terminal.ansiBrightBlack"]} !important; |
| 110 | + } |
| 111 | + .hyper-search-wrapper button:nth-of-type(2) { |
| 112 | + border-radius: 0 4px 4px 0 !important; |
| 113 | + } |
| 114 | + .hyper-search-wrapper:before { |
| 115 | + width: 20px; |
| 116 | + color: #000; |
| 117 | + position: absolute; |
| 118 | + content: "🔍"; |
| 119 | + font-size: 10px; |
| 120 | + margin: 7px; |
| 121 | + z-index: 999; |
| 122 | + } |
| 123 | + #hyper-search-input { |
| 124 | + background-color: ${colors["terminal.ansiWhite"]} !important; |
| 125 | + border-radius: 4px; |
| 126 | + box-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); |
| 127 | + padding: 3px 6px 3px 24px !important; |
| 128 | + color: ${colors["terminal.ansiBlack"]} !important; |
| 129 | + opacity: 0.9 !important; |
| 130 | + margin-right: 2px; |
| 131 | + } |
| 132 | + #hyper-search-input:focus { |
| 133 | + opacity: 1.0 !important; |
| 134 | + box-shadow: 0 1px 10px rgba(0, 0, 0, 1.0); |
| 135 | + } |
| 136 | + ` |
| 137 | + }); |
0 commit comments