Skip to content

Commit

Permalink
Added support for Hyper 2. Fixes #32
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed Apr 17, 2018
1 parent 36564cc commit c2ba434
Showing 1 changed file with 23 additions and 52 deletions.
75 changes: 23 additions & 52 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,56 +215,30 @@ exports.decorateConfig = config => {
const secondary = theme.secondary;
const tertiary = theme.tertiary;
const selectedColor = theme.primary;
const transparent = 'rgba(0, 0, 0, 0)';

const syntax = {
dark: {
borderColor: primary,
cursorColor: secondary,
foregroundColor: secondary,
backgroundColor: '#383A42',
colors: {
black: tertiary,
red: secondary,
green: tertiary,
yellow: secondary,
blue: secondary,
magenta: secondary,
cyan: secondary,
white: secondary,
lightBlack: tertiary,
lightRed: secondary,
lightGreen: secondary,
lightYellow: secondary,
lightBlue: secondary,
lightMagenta: secondary,
lightCyan: secondary,
lightWhite: secondary
}
},

light: {
borderColor: primary,
cursorColor: secondary,
foregroundColor: secondary,
backgroundColor: '#FAFAFA',
colors: {
black: tertiary,
red: secondary,
green: tertiary,
yellow: secondary,
blue: secondary,
magenta: secondary,
cyan: secondary,
white: secondary,
lightBlack: tertiary,
lightRed: secondary,
lightGreen: secondary,
lightYellow: secondary,
lightBlue: secondary,
lightMagenta: secondary,
lightCyan: secondary,
lightWhite: secondary
}
borderColor: primary,
cursorColor: secondary,
foregroundColor: secondary,
backgroundColor: transparent,
colors: {
black: tertiary,
red: secondary,
green: tertiary,
yellow: secondary,
blue: secondary,
magenta: secondary,
cyan: secondary,
white: secondary,
lightBlack: tertiary,
lightRed: secondary,
lightGreen: secondary,
lightYellow: secondary,
lightBlue: secondary,
lightMagenta: secondary,
lightCyan: secondary,
lightWhite: secondary
}
};

Expand All @@ -287,10 +261,7 @@ exports.decorateConfig = config => {
// Poketab settings
const tabContent = (poketabFlag === true) ? pathToPokecursor : '';

return Object.assign({}, config,
(themeSyntax === 'light') ?
syntax.light :
syntax.dark, {
return Object.assign({}, config, syntax, {
cursorColor: cursorVisibility,
termCSS: `
${config.termCSS || ''}
Expand Down

0 comments on commit c2ba434

Please sign in to comment.