Infer the terminal theme from the background colour correctly, if theme

reporting is not supported.
This commit is contained in:
nicm
2026-07-04 22:06:45 +00:00
parent b05f0abeeb
commit 415885ecb9
2 changed files with 7 additions and 1 deletions

View File

@@ -1197,6 +1197,8 @@ server_client_update_theme_colours(struct client *c)
format_defaults(ft, c, NULL, NULL, NULL);
theme = c->theme;
if (theme == THEME_UNKNOWN)
theme = colour_totheme(c->tty.bg);
if (option == 2)
theme = THEME_LIGHT;
else if (option == 3)