From 222467d4299b70b336a3036fa188ba35ff47d865 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 (cherry picked from commit 77e62d5a544a59646be4ac4d3394605fbfc75752) --- gen/kneeboard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gen/kneeboard.py b/gen/kneeboard.py index 110dff55..e224a5eb 100644 --- a/gen/kneeboard.py +++ b/gen/kneeboard.py @@ -94,10 +94,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)