From 9b6b9733b94fd4ba9cf3a45250883e77b90f63fa Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 30 Nov 2025 22:58:41 +0530 Subject: [PATCH] ... --- kitty/boss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/boss.py b/kitty/boss.py index 4d0906cbf..8ad1c404e 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -2874,7 +2874,7 @@ def disable_ligatures_in(self, where: str | Iterable[Window], strategy: int) -> def apply_new_options(self, opts: Options) -> None: bg_before = get_options().background bg_colors_before = {w.id: w.screen.color_profile.default_bg for w in self.all_windows} - configured_bg_changed = bg_before != opts.background + configured_color_scheme_changed = bg_before.is_dark != opts.background.is_dark # Update options storage set_options(opts, is_wayland(), self.args.debug_rendering, self.args.debug_font_fallback) apply_options_update() @@ -2911,7 +2911,7 @@ def apply_new_options(self, opts: Options) -> None: for w in self.all_windows: if w.screen.color_profile.default_bg != bg_colors_before.get(w.id): self.default_bg_changed_for(w.id) - elif configured_bg_changed: + elif configured_color_scheme_changed: # the application running in the window could have set the # background color, so it wont change because of a config # reload, but the application might still want to be notified