diff options
author | mathieui <mathieui@mathieui.net> | 2018-08-17 02:16:03 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-08-17 02:16:03 +0200 |
commit | b4d3b93da2e23cefb85dd98f1f7f9706aa0402d4 (patch) | |
tree | f8c489bbf65a9a4a24d268281d3da798bbfe3ba2 /poezio/windows/info_bar.py | |
parent | 6ccf7ea71d5e5194dd036a90e36c0db6a0ec757a (diff) | |
download | poezio-b4d3b93da2e23cefb85dd98f1f7f9706aa0402d4.tar.gz poezio-b4d3b93da2e23cefb85dd98f1f7f9706aa0402d4.tar.bz2 poezio-b4d3b93da2e23cefb85dd98f1f7f9706aa0402d4.tar.xz poezio-b4d3b93da2e23cefb85dd98f1f7f9706aa0402d4.zip |
Add typing information and reformat stuff
Diffstat (limited to 'poezio/windows/info_bar.py')
-rw-r--r-- | poezio/windows/info_bar.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/poezio/windows/info_bar.py b/poezio/windows/info_bar.py index 6e338a78..f4ba1f1f 100644 --- a/poezio/windows/info_bar.py +++ b/poezio/windows/info_bar.py @@ -32,7 +32,8 @@ class GlobalInfoBar(Win): show_inactive = config.get('show_inactive_tabs') for nb, tab in enumerate(self.core.tabs): - if not tab: continue + if not tab: + continue color = tab.color if not show_inactive and color is get_theme().COLOR_TAB_NORMAL: continue @@ -72,8 +73,10 @@ class VerticalGlobalInfoBar(Win): self._win.erase() sorted_tabs = [tab for tab in self.core.tabs if tab] if not config.get('show_inactive_tabs'): - sorted_tabs = [tab for tab in sorted_tabs if\ - tab.vertical_color != get_theme().COLOR_VERTICAL_TAB_NORMAL] + sorted_tabs = [ + tab for tab in sorted_tabs + if tab.vertical_color != get_theme().COLOR_VERTICAL_TAB_NORMAL + ] nb_tabs = len(sorted_tabs) use_nicks = config.get('use_tab_nicks') if nb_tabs >= height: |