Skip to content

Commit

Permalink
Merge pull request #5075 from Textualize/fix-color-transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan authored Oct 2, 2024
2 parents ffc8174 + 5e72bd2 commit 91046dc
Show file tree
Hide file tree
Showing 4 changed files with 915 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/textual/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def inverse(self) -> Color:
@property
def is_transparent(self) -> bool:
"""Is the color transparent (i.e. has 0 alpha)?"""
return self.a == 0 and self.ansi is not None
return self.a == 0 and self.ansi is None

@property
def clamped(self) -> Color:
Expand Down
Loading

0 comments on commit 91046dc

Please sign in to comment.