From 9bdb490435a4ca9741911396a28fa6bbdb47159b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Deuchnord?= Date: Fri, 19 Nov 2021 13:31:10 +0100 Subject: [PATCH] fix(colors): use colors adapted on both dark and light background --- _kosmorro/dumper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_kosmorro/dumper.py b/_kosmorro/dumper.py index c854c2e..a253e45 100644 --- a/_kosmorro/dumper.py +++ b/_kosmorro/dumper.py @@ -145,14 +145,14 @@ class TextDumper(Dumper): return text styles = { - "h1": lambda t: colored(t, "yellow", attrs=["bold"]), + "h1": lambda t: colored(t, "green", attrs=["bold"]), "h2": lambda t: colored(t, "magenta", attrs=["bold"]), - "th": lambda t: colored(t, "white", attrs=["bold"]), + "th": lambda t: colored(t, attrs=["bold"]), "strong": lambda t: colored(t, attrs=["bold"]), "em": lambda t: colored(t, attrs=["dark"]), } - return styles[tag](text) + return styles.get(tag, lambda t: t)(text) def stringify_ephemerides(self) -> str: data = []