mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix text foreground color for dark kneeboard
This commit is contained in:
parent
bef015eb57
commit
77e62d5a54
@ -96,10 +96,12 @@ class KneeboardPageWriter:
|
|||||||
self,
|
self,
|
||||||
text: str,
|
text: str,
|
||||||
font: Optional[ImageFont.FreeTypeFont] = None,
|
font: Optional[ImageFont.FreeTypeFont] = None,
|
||||||
fill: Tuple[int, int, int] = (0, 0, 0),
|
fill: Optional[Tuple[int, int, int]] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
if font is None:
|
if font is None:
|
||||||
font = self.content_font
|
font = self.content_font
|
||||||
|
if fill is None:
|
||||||
|
fill = self.foreground_fill
|
||||||
|
|
||||||
self.draw.text(self.position, text, font=font, fill=fill)
|
self.draw.text(self.position, text, font=font, fill=fill)
|
||||||
width, height = self.draw.textsize(text, font=font)
|
width, height = self.draw.textsize(text, font=font)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user