Skip to content

Commit

Permalink
Poketab feature added
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed Aug 7, 2017
1 parent e3acf36 commit 4c39f70
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ exports.decorateConfig = config => {
const unibodyFlag = unibody !== 'false';
const pokecursor = config.pokecursor;
const pokecursorFlag = pokecursor === 'true';
const poketab = config.poketab;
const poketabFlag = poketab === 'true';

// Load color palettes from yaml files
const pokemonYml = yaml.safeLoad(
Expand Down Expand Up @@ -264,9 +266,11 @@ exports.decorateConfig = config => {
pathToPokecursor = assemblePokecursorPath;
}

// Set theme pokecursor
// Pokecursor settings
const cursorVisibility = (pokecursorFlag === true) ? 'transparent' : secondary;
const cursorContent = (pokecursorFlag === true) ? pathToPokecursor : '';
// Poketab settings
const tabContent = (poketabFlag === true) ? pathToPokecursor : '';

return Object.assign({}, config,
(config.pokemonSyntax === 'light') ?
Expand Down Expand Up @@ -302,6 +306,12 @@ exports.decorateConfig = config => {
.header_header, .header_windowHeader {
background-color: ${primary} !important;
}
.tab_textActive .tab_textInner::before {
content: url("file://${tabContent}");
position: absolute;
right: 0;
top: -4px;
}
.tabs_nav .tabs_list {
border-bottom: 0;
}
Expand Down

0 comments on commit 4c39f70

Please sign in to comment.