Skip to content

Commit

Permalink
Update error syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dangvanthanh committed Oct 12, 2020
1 parent c891f4a commit 3a88fbf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
33 changes: 16 additions & 17 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,26 @@ const colors = {
lightCyan: '#9aedfe',
lightWhite: '#e6e6e6',
};
const termCSS = (config) => `
${config.termCSS || ''}
`;
const css = (config) => `
${config.css || ''}
.tabs_list .tab_tab.tab_active .tab_text {
background: ${backgroundColor};
}

.tab_active:before {
border-color: ${borderColor};
}
`;

exports.decorateConfig = (config) =>
Object.assign({}, config, {
exports.decorateConfig = (config) => {
return Object.assign({}, config, {
backgroundColor,
foregroundColor,
borderColor,
cursorColor,
colors,
termCSS,
css,
termCSS: `
${config.termCSS || ''}
`,
css: `
${config.css || ''}
.tabs_list .tab_tab.tab_active .tab_text {
background: ${backgroundColor};
}
.tab_active:before {
border-color: ${borderColor};
}
`,
});
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hyper-dracula",
"version": "0.2.0",
"version": "0.2.1",
"main": "index.js",
"homepage": "https://draculatheme.com/hyper",
"description": "A dark theme for Hyper",
Expand Down

0 comments on commit 3a88fbf

Please sign in to comment.