mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 09:13:14 +02:00
06f8dd4cd3
Add a new string option "weechat.look.theme" holding the name of the last theme applied via the upcoming /theme command. It is set automatically by /theme apply and persisted on disk for /theme info to display after restart; it is NOT re-applied at startup (the user's saved color values win to avoid clobbering manual post-apply tweaks). Amend config_change_color so it skips the gui_color_init_weechat () and gui_window_ask_refresh (1) calls when theme_applying is set. /theme apply will set this flag while iterating overrides so the N individual option changes do not trigger N redundant screen refreshes; the apply path then performs a single refresh at the end.