Reload colors2 as well as colors, naming tweaks.

This commit is contained in:
wreald 2025-05-31 15:42:29 +10:00
parent 9f5cf7abca
commit 938f30ee92
4 changed files with 10 additions and 5 deletions

View file

@ -593,7 +593,7 @@ err:
/* Reload configured colors from disk. */
void
server_hard_reload_config_colors(struct server *server) {
server_reload_config_colors(struct server *server) {
config_reload_colors((struct config *)server->conf);
tll_foreach(server->wayl->terms, it) {
@ -601,7 +601,11 @@ server_hard_reload_config_colors(struct server *server) {
((struct config *)term->conf)->colors = server->conf->colors;
term_soft_reload_config_colors(term);
if (term->colors.active_theme == COLOR_THEME1) {
term_theme_apply(term, &term->conf->colors);
} else {
term_theme_apply(term, &term->conf->colors2);
}
}
}