Skip to content

Commit

Permalink
snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Oct 16, 2024
1 parent c40c265 commit 71ea907
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 60 deletions.
4 changes: 2 additions & 2 deletions src/textual/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,10 @@ def tint(self, color: Color) -> Color:
"""
r2, g2, b2, a2, ansi2 = color
if ansi2 is not None:
return color
return self
r1, g1, b1, a1, ansi1 = self
if ansi1 is not None:
return color
return self
return Color(
int(r1 + (r2 - r1) * a2),
int(g1 + (g2 - g1) * a2),
Expand Down
Loading

0 comments on commit 71ea907

Please sign in to comment.