From 736a56182cc4b4fe9e0af67c159c491de0e7ebe0 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Tue, 29 Mar 2022 20:50:42 +0100 Subject: [PATCH] formatting --- src/textual/color.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/textual/color.py b/src/textual/color.py index 5b19ea0df..e469b167c 100644 --- a/src/textual/color.py +++ b/src/textual/color.py @@ -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