From 2d9b10413490c6d8e9e029ddeda7b7b379538480 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 22 May 2026 21:38:00 +0530 Subject: [PATCH] Fix #10058 --- docs/changelog.rst | 2 ++ kitty/colors.py | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index e23e54bc9..b918f7f5a 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -180,6 +180,8 @@ Detailed list of changes - macOS: Fix a regression in the previous release that caused URLs to be quoted when dropping into shells (:iss:`10054`) +- Fix a regression in the previous release that broke automatic color scheme changes when using a background image (:iss:`10058`) + 0.47.0 [2026-05-19] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/colors.py b/kitty/colors.py index f4226094f..edcb0be03 100644 --- a/kitty/colors.py +++ b/kitty/colors.py @@ -22,7 +22,7 @@ class BackgroundImageOptions(TypedDict, total=False): - background_image: str | None + background_image: Sequence[str] | None background_image_layout: str | None background_image_linear: bool | None background_tint: float | None @@ -292,8 +292,9 @@ def patch_colors( notify_bg = notify_on_bg_change and default_bg_changed boss = get_boss() if background_image_options is not None: + bg = background_image_options.get('background_image') boss.set_background_image( - background_image_options.get('background_image'), tuple(os_window_ids), configured, + bg[0] if bg else None, tuple(os_window_ids), configured, layout=background_image_options.get('background_image_layout'), linear_interpolation=background_image_options.get('background_image_linear'), tint=background_image_options.get('background_tint'), tint_gaps=background_image_options.get('background_tint_gaps'))