kitty @ set-colors: Fix changing inactive_tab_foreground not working

Fixes #5214
This commit is contained in:
Kovid Goyal
2022-06-19 20:20:58 +05:30
parent 8d18fc09fa
commit f95bc48f9b
2 changed files with 6 additions and 0 deletions

View File

@@ -501,6 +501,10 @@ class TabBar:
fg = spec.get('inactive_tab_foreground')
if fg is None:
fg = color_as_int(opts.inactive_tab_foreground)
else:
ifg = color_from_int(fg)
if ifg is not None:
self.draw_data = self.draw_data._replace(inactive_fg=ifg)
self.screen.color_profile.set_configured_colors(fg, bg)
def update_blank_rects(self, central: Region, tab_bar: Region, vw: int, vh: int) -> None: