Skip to content

Commit 91046dc

Browse files
authored
Merge pull request #5075 from Textualize/fix-color-transparent
2 parents ffc8174 + 5e72bd2 commit 91046dc

File tree

4 files changed

+915
-1
lines changed

4 files changed

+915
-1
lines changed

src/textual/color.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def inverse(self) -> Color:
209209
@property
210210
def is_transparent(self) -> bool:
211211
"""Is the color transparent (i.e. has 0 alpha)?"""
212-
return self.a == 0 and self.ansi is not None
212+
return self.a == 0 and self.ansi is None
213213

214214
@property
215215
def clamped(self) -> Color:

0 commit comments

Comments
 (0)