mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-21 07:55:10 +02:00
kitty @ get-colors: Report the current tab bar colors for the active OS window rather than configured values. Fixes #5865
This commit is contained in:
@@ -51,6 +51,10 @@ configured colors.
|
||||
ans.pop(k, None)
|
||||
else:
|
||||
ans[k] = color_from_int(v)
|
||||
tab = windows[0].tabref()
|
||||
tm = None if tab is None else tab.tab_manager_ref()
|
||||
if tm is not None:
|
||||
ans.update(tm.tab_bar.current_colors)
|
||||
all_keys = natsort_ints(ans)
|
||||
maxlen = max(map(len, all_keys))
|
||||
return '\n'.join(('{:%ds} {}' % maxlen).format(key, color_as_sharp(ans[key])) for key in all_keys)
|
||||
|
||||
Reference in New Issue
Block a user