mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Fix #7912
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user