This commit is contained in:
Kovid Goyal 2025-11-30 22:58:41 +05:30
parent bc276f1e2e
commit 9b6b9733b9
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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