mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix text foreground color for dark kneeboard
(cherry picked from commit 77e62d5a544a59646be4ac4d3394605fbfc75752)
This commit is contained in:
parent
be5b87be2a
commit
222467d429
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user