mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Fix #7912
This commit is contained in:
parent
7b4a6e00a7
commit
16d334a4b6
1 changed files with 1 additions and 1 deletions
|
|
@ -1562,7 +1562,7 @@ def transparent_background_colors(spec: str) -> Tuple[Tuple[Color, float], ...]:
|
|||
for part in spec.split():
|
||||
col, sep, alpha = part.partition('@')
|
||||
c = to_color(col)
|
||||
o = unit_float(alpha) if alpha else -1
|
||||
o = max(-1, min(float(alpha) if alpha else -1, 1))
|
||||
if (idx := seen.get(c)) is not None:
|
||||
ans[idx] = c, o
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue