diff --git a/kitty/rgb.py b/kitty/rgb.py index 72094a2ab..778d1a72c 100644 --- a/kitty/rgb.py +++ b/kitty/rgb.py @@ -75,7 +75,7 @@ def color_from_int(x: int) -> Color: def color_as_int(x: Color) -> int: - return x.red << 16 | x.green << 8 | x.blue + return int(x) def color_as_sharp(x: Color) -> str: