Fix breakage caused by Color no longer being iterable
This commit is contained in:
parent
69e54cb9c1
commit
0f23edeec3
1 changed files with 2 additions and 2 deletions
|
|
@ -447,8 +447,8 @@ def __call__(self, line: str, ans: Dict[str, Any]) -> None:
|
|||
def parse_theme(fname: str, raw: str, exc_class: Type[BaseException] = SystemExit) -> Dict[str, Any]:
|
||||
lines = raw.splitlines()
|
||||
conf = parse_config(lines)
|
||||
bg = conf.get('background', Color())
|
||||
is_dark = max(bg) < 115
|
||||
bg: Color = conf.get('background', Color())
|
||||
is_dark = max((bg.red, bg.green, bg.blue)) < 115
|
||||
ans: Dict[str, Any] = {'name': theme_name_from_file_name(fname)}
|
||||
parser = LineParser()
|
||||
for i, line in enumerate(raw.splitlines()):
|
||||
|
|
|
|||
Loading…
Reference in a new issue