Have auto color scheme switching also control background image

Fixes #8603
This commit is contained in:
Kovid Goyal
2025-05-06 09:10:05 +05:30
parent 7045632d2e
commit 80bb9404d5
8 changed files with 116 additions and 43 deletions

View File

@@ -269,9 +269,9 @@ class AppRunner:
self.initial_window_size_func = initial_window_size_func
def __call__(self, opts: Options, args: CLIOptions, bad_lines: Sequence[BadLine] = (), talk_fd: int = -1) -> None:
set_options(opts, is_wayland(), args.debug_rendering, args.debug_font_fallback)
if theme_colors.refresh():
theme_colors.patch_opts(opts, args.debug_rendering)
set_options(opts, is_wayland(), args.debug_rendering, args.debug_font_fallback)
try:
set_font_family(opts, add_builtin_nerd_font=True)
_run_app(opts, args, bad_lines, talk_fd)