formatting

This commit is contained in:
Will McGugan
2022-03-29 20:50:42 +01:00
parent aa16dbab12
commit 736a56182c

View File

@@ -633,11 +633,13 @@ class ColorPair(NamedTuple):
r, g, b, a = self.foreground
if a == 0:
return Style(
color=self.background.rich_color, bgcolor=self.background.rich_color
color=self.background.rich_color,
bgcolor=self.background.rich_color,
)
elif a == 1:
return Style(
color=self.foreground.rich_color, bgcolor=self.background.rich_color
color=self.foreground.rich_color,
bgcolor=self.background.rich_color,
)
else:
r2, g2, b2, _ = self.background