Allow the user to supply a custom Python function to draw tab bar

This commit is contained in:
Kovid Goyal
2021-08-18 07:15:03 +05:30
parent e4cc8bf828
commit 868626c79c
5 changed files with 50 additions and 10 deletions

View File

@@ -1173,7 +1173,7 @@ class Parser:
raise ValueError(f"The value {val} is not a valid choice for tab_bar_style")
ans["tab_bar_style"] = val
choices_for_tab_bar_style = frozenset(('fade', 'hidden', 'powerline', 'separator', 'slant'))
choices_for_tab_bar_style = frozenset(('fade', 'hidden', 'powerline', 'separator', 'slant', 'custom'))
def tab_fade(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
ans['tab_fade'] = tab_fade(val)