Skip to content

Commit c891f4a

Browse files
committed
#16 - Dracula Theme dont work with plugin hyperpower
1 parent 9de64a4 commit c891f4a

File tree

3 files changed

+30
-25
lines changed

3 files changed

+30
-25
lines changed

INSTALL.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
### [Hyper](https://hyper.is/)
1+
# [Hyper](https://hyper.is/)
22

3-
#### Install using the [hyper command-line interface](https://hyper.is/)
3+
## Install using the [hyper command-line interface](https://hyper.is/)
44

5-
$ hyper install hyper-dracula
5+
```shell
6+
$ hyper install hyper-dracula
7+
```
68

7-
#### Install using config file
9+
## Install using config file
810

911
Add `hyper-dracula` to the plugins list in your `~/.hyper.js` config file.
1012

11-
plugins: [
12-
'hyper-dracula'
13-
]
13+
```shell
14+
plugins: [
15+
'hyper-dracula'
16+
]
17+
```
1418

15-
#### Activating theme
19+
## Activating theme
1620

1721
1. Start Hyper
1822
2. Go to `View -> Full Reload` or pressing `Cmd + Shft + R`

index.js

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,27 @@ const colors = {
2222
lightCyan: '#9aedfe',
2323
lightWhite: '#e6e6e6',
2424
};
25+
const termCSS = (config) => `
26+
${config.termCSS || ''}
27+
`;
28+
const css = (config) => `
29+
${config.css || ''}
30+
.tabs_list .tab_tab.tab_active .tab_text {
31+
background: ${backgroundColor};
32+
}
2533
26-
exports.decorateConfig = (config) => {
27-
return Object.assign({}, config, {
34+
.tab_active:before {
35+
border-color: ${borderColor};
36+
}
37+
`;
38+
39+
exports.decorateConfig = (config) =>
40+
Object.assign({}, config, {
2841
backgroundColor,
2942
foregroundColor,
3043
borderColor,
3144
cursorColor,
3245
colors,
33-
termCSS: `
34-
${config.termCSS || ''}
35-
`,
36-
css: `
37-
${config.css || ''}
38-
.tabs_list .tab_tab.tab_active .tab_text {
39-
background: ${backgroundColor};
40-
}
41-
42-
.tab_active:before {
43-
border-color: ${borderColor};
44-
}
45-
`,
46+
termCSS,
47+
css,
4648
});
47-
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hyper-dracula",
3-
"version": "0.1.9",
3+
"version": "0.2.0",
44
"main": "index.js",
55
"homepage": "https://draculatheme.com/hyper",
66
"description": "A dark theme for Hyper",

0 commit comments

Comments
 (0)