prepare 0.4.8

This commit is contained in:
Buck Ryan 2018-01-29 12:01:32 -05:00
parent 3c3062e3ce
commit e7964d1682
7 changed files with 27 additions and 9 deletions

View file

@ -1,5 +1,12 @@
# Changes
2018-01-29 (version 0.4.8)
* Bring back the ability to create custom themes
([@b-ryan](https://github.com/b-ryan/powerline-shell/pull/352))
* Add the ability to customize the `time` segment in themes
([@gaurav-nelson](https://github.com/b-ryan/powerline-shell/pull/338))
2018-01-15 (version 0.4.7)
* VCS segments (git, hg, etc.) can now show a symbol identifying what VPS the

View file

@ -218,14 +218,25 @@ file. The available modes are:
The `powerline_shell/themes` directory stores themes for your prompt, which are
basically color values used by segments. The `default.py` defines a default
theme which can be used standalone, and every other theme falls back to it if
they miss colors for any segments. Create new themes by copying any other
existing theme and changing the values. To use a theme, set the `theme`
variable in `~/.powerline-shell.json` to the name of your theme.
they miss colors for any segments.
If you want to create a custom theme, start by copying one of the existing
themes, like the
[basic](https://github.com/b-ryan/powerline-shell/blob/master/powerline_shell/themes/basic.py).
and update your `~/.powerline-shell.json`, setting the `"theme"` to the path of
the file. For example your configuration might have:
```
"theme": "~/mythemes/my-great-theme.py"
```
You can then modify the color codes to your liking. Theme colors are specified
using [Xterm-256 color codes](https://jonasjacek.github.io/colors/).
A script for testing color combinations is provided at `colortest.py`. Note
that the colors you see may vary depending on your terminal. When designing a
theme, please test your theme on multiple terminals, especially with default
settings. Theme colors are specified using [Xterm-256 color codes](https://jonasjacek.github.io/colors/).
settings.
### Segment Configuration

View file

@ -1,4 +1,4 @@
from .default import DefaultColor
from powerline_shell.themes.default import DefaultColor
class Color(DefaultColor):

View file

@ -1,4 +1,4 @@
from .default import DefaultColor
from powerline_shell.themes.default import DefaultColor
class Color(DefaultColor):

View file

@ -1,4 +1,4 @@
from .default import DefaultColor
from powerline_shell.themes.default import DefaultColor
class Color(DefaultColor):

View file

@ -1,4 +1,4 @@
from .default import DefaultColor
from powerline_shell.themes.default import DefaultColor
class Color(DefaultColor):

View file

@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name="powerline-shell",
version="0.4.7",
version="0.4.8",
description="A pretty prompt for your shell",
author="Buck Ryan",
url="https://github.com/banga/powerline-shell",