From 72745dfb620ea587b02e896a5bce3296443028d3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 14 Jan 2022 13:27:35 +0530 Subject: [PATCH] Use red fg for activity symbol by default Can be overriden via template, but for backwards compat keep it red --- kitty/tab_bar.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kitty/tab_bar.py b/kitty/tab_bar.py index 995c65108..1dbbabe12 100644 --- a/kitty/tab_bar.py +++ b/kitty/tab_bar.py @@ -200,12 +200,16 @@ def draw_title(draw_data: DrawData, screen: Screen, tab: TabBarData, index: int) screen.cursor.fg = fg if tab.has_activity_since_last_focus and draw_data.tab_activity_symbol: template = draw_data.tab_activity_symbol + fg = screen.cursor.fg + screen.cursor.fg = draw_data.bell_fg try: text = eval(compile_template(template), {'__builtins__': {}}, eval_locals) except Exception as e: report_template_failure(template, str(e)) else: draw_attributed_string(text, screen) + if screen.cursor.fg == draw_data.bell_fg: + screen.cursor.fg = fg template = draw_data.title_template if tab.is_active and draw_data.active_title_template is not None: