From e7964d1682590b8a2f237e5fa82024e0b1ec2123 Mon Sep 17 00:00:00 2001 From: Buck Ryan Date: Mon, 29 Jan 2018 12:01:32 -0500 Subject: [PATCH] prepare 0.4.8 --- CHANGELOG.md | 7 +++++++ README.md | 19 +++++++++++++++---- powerline_shell/themes/basic.py | 2 +- powerline_shell/themes/solarized_dark.py | 2 +- powerline_shell/themes/solarized_light.py | 2 +- powerline_shell/themes/washed.py | 2 +- setup.py | 2 +- 7 files changed, 27 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92f2019..011051b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 212a965..a1c1255 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/powerline_shell/themes/basic.py b/powerline_shell/themes/basic.py index aa0d929..bd4d2f9 100644 --- a/powerline_shell/themes/basic.py +++ b/powerline_shell/themes/basic.py @@ -1,4 +1,4 @@ -from .default import DefaultColor +from powerline_shell.themes.default import DefaultColor class Color(DefaultColor): diff --git a/powerline_shell/themes/solarized_dark.py b/powerline_shell/themes/solarized_dark.py index 893a04b..ec0f41b 100644 --- a/powerline_shell/themes/solarized_dark.py +++ b/powerline_shell/themes/solarized_dark.py @@ -1,4 +1,4 @@ -from .default import DefaultColor +from powerline_shell.themes.default import DefaultColor class Color(DefaultColor): diff --git a/powerline_shell/themes/solarized_light.py b/powerline_shell/themes/solarized_light.py index ffb58b2..d5a14d6 100644 --- a/powerline_shell/themes/solarized_light.py +++ b/powerline_shell/themes/solarized_light.py @@ -1,4 +1,4 @@ -from .default import DefaultColor +from powerline_shell.themes.default import DefaultColor class Color(DefaultColor): diff --git a/powerline_shell/themes/washed.py b/powerline_shell/themes/washed.py index fdccd58..d293509 100644 --- a/powerline_shell/themes/washed.py +++ b/powerline_shell/themes/washed.py @@ -1,4 +1,4 @@ -from .default import DefaultColor +from powerline_shell.themes.default import DefaultColor class Color(DefaultColor): diff --git a/setup.py b/setup.py index 78f34b8..fbffff8 100755 --- a/setup.py +++ b/setup.py @@ -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",