Automatic color scheme switching: Fix title bar color not being updated

Fixes #9167
This commit is contained in:
Kovid Goyal
2025-11-02 22:09:41 +05:30
parent a5e0ba9f68
commit d32adcabea
3 changed files with 7 additions and 3 deletions

View File

@@ -183,6 +183,8 @@ Detailed list of changes
- Wayland: Fix scrolling using some mouse wheels that produce "VALUE120" based
scroll events too fast on some compositors (:pull:`9128`)
- Automatic color scheme switching: Fix title bar color not being updated (:iss:`9167`)
- Add support for Unicode 17
- Fix a regression in 0.43.0 that caused :opt:`tab_bar_margin_width` to be

View File

@@ -258,9 +258,10 @@ def patch_colors(
t = tm.active_tab
if t is not None:
t.relayout_borders()
set_os_window_chrome(tm.os_window_id)
os_window_ids.add(tm.os_window_id)
patch_global_colors(spec, configured)
patch_global_colors(spec, configured) # changes macos_titlebar_color
for oswid in os_window_ids:
set_os_window_chrome(oswid)
default_bg_changed = 'background' in spec
notify_bg = notify_on_bg_change and default_bg_changed
boss = get_boss()

View File

@@ -1200,7 +1200,8 @@ PYWRAP1(patch_global_colors) {
else if (PyLong_Check(val)) OPT(name) = PyLong_AsLong(val); \
} \
}
P(active_border_color); P(inactive_border_color); P(bell_border_color); P(tab_bar_background); P(tab_bar_margin_color);
P(active_border_color); P(inactive_border_color); P(bell_border_color); P(tab_bar_background);
P(tab_bar_margin_color); P(macos_titlebar_color); P(wayland_titlebar_color);
if (configured) {
P(background); P(url_color);
}