diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-11-14 12:13:03 +0000 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-11-14 12:13:03 +0000 |
commit | bd7b52988c99ef34fd49f52c8a9d335941144450 (patch) | |
tree | 2616f8245dc94433eb3a14e4b5b18f34b61c3030 /poezio/theming.py | |
parent | 395435c68dc656641e7bdb53da88773482dd55b5 (diff) | |
download | poezio-bd7b52988c99ef34fd49f52c8a9d335941144450.tar.gz poezio-bd7b52988c99ef34fd49f52c8a9d335941144450.tar.bz2 poezio-bd7b52988c99ef34fd49f52c8a9d335941144450.tar.xz poezio-bd7b52988c99ef34fd49f52c8a9d335941144450.zip |
yapf -ir
Diffstat (limited to 'poezio/theming.py')
-rwxr-xr-x | poezio/theming.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/poezio/theming.py b/poezio/theming.py index b5c9d516..5cdd89ae 100755 --- a/poezio/theming.py +++ b/poezio/theming.py @@ -373,6 +373,7 @@ class Theme(object): prepare_ccolor_palette(self) return self.CCG_PALETTE + # This is the default theme object, used if no theme is defined in the conf theme = Theme() @@ -467,7 +468,8 @@ def to_curses_attr(color_tuple): if 'u' in additional_val: curses_pair = curses_pair | curses.A_UNDERLINE if 'i' in additional_val: - curses_pair = curses_pair | (curses.A_ITALIC if hasattr(curses, 'A_ITALIC') else curses.A_REVERSE) + curses_pair = curses_pair | (curses.A_ITALIC if hasattr( + curses, 'A_ITALIC') else curses.A_REVERSE) if 'a' in additional_val: curses_pair = curses_pair | curses.A_BLINK return curses_pair @@ -517,6 +519,7 @@ def update_themes_dir(option=None, value=None): log.debug('Theme load path: %s', load_path) + def prepare_ccolor_palette(theme): """ Prepare the Consistent Color Generation (XEP-0392) palette for a theme. @@ -538,6 +541,7 @@ def prepare_ccolor_palette(theme): theme.CCG_Y, ) + def reload_theme(): theme_name = config.get('theme') global theme |