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
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 0 deletions

View File

@ -49,6 +49,8 @@ Detailed list of changes
- macOS: Remote control: Fix unable to launch a new OS window or background process when there is no OS window (:iss:`5210`)
- kitty @ set-colors: Fix changing inactive_tab_foreground not working (:iss:`5214`)
0.25.2 [2022-06-07]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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: