Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Poketabs #20

Merged
merged 3 commits into from
Aug 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Binary file added media/poketab.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,26 @@ In addition, completely omitting the `unibody` option from your `.hyper.js` will

![Unibody](media/unibody.png)

### `poketab`

Choose whether or not you want an animated `.gif` that matches your current pokemon theme, to accompany your active Hyper terminal tab.

The assignable values are:

- `poketab: 'true'` - enable your theme's poketab
- `poketab: 'false'` - disable your theme's poketab

Also, completely omitting the `poketab` option from your `.hyper.js` will have the same effect as defining it and setting it to `false`. (**default state**)

<div align="center">
<br/>
<a href="">
<img src="https://cdn.rawgit.com/hyper-pokemon/hyper-pokemon/poketabs/media/poketab.gif" alt="Hyper Pokemon - Poketab" width="80%">
</a>
<br/>
<br/>
</div>

[:arrow_up:Back to top!](#contents)

## Available Themes
Expand Down