From 77e62d5a544a59646be4ac4d3394605fbfc75752 Mon Sep 17 00:00:00 2001 From: Kangwook Lee Date: Mon, 2 Aug 2021 15:30:29 +0900 Subject: [PATCH] Fix text foreground color for dark kneeboard --- gen/kneeboard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gen/kneeboard.py b/gen/kneeboard.py index 31ae4c9b..a2be2ef6 100644 --- a/gen/kneeboard.py +++ b/gen/kneeboard.py @@ -96,10 +96,12 @@ class KneeboardPageWriter: self, text: str, font: Optional[ImageFont.FreeTypeFont] = None, - fill: Tuple[int, int, int] = (0, 0, 0), + fill: Optional[Tuple[int, int, int]] = None, ) -> None: if font is None: font = self.content_font + if fill is None: + fill = self.foreground_fill self.draw.text(self.position, text, font=font, fill=fill) width, height = self.draw.textsize(text, font=font)