From 33577e12ab6090678d25b1e1f6b137828df24b60 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Martineau Date: Wed, 12 Aug 2026 17:58:59 -0400 Subject: [PATCH] Chat: the day divider is a section heading, so it dresses like one MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A transcript's ``── Wed Aug 12 ──`` does exactly what a grouped list's heading does — it pins to the top row while its day scrolls under it, and ^PgUp/^PgDn step by it — but it was drawn muted, which reads as chrome and put the one landmark in the scrollback below the messages it labels. It takes the accent every other section heading in the app wears. The rule above the compose line keeps its grey: that one really is chrome. Co-Authored-By: Claude Opus 5 (1M context) --- meshterm/ui/chat.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meshterm/ui/chat.py b/meshterm/ui/chat.py index c4c238b..2a505e9 100644 --- a/meshterm/ui/chat.py +++ b/meshterm/ui/chat.py @@ -392,8 +392,13 @@ class ChatScreen(Screen): if new_day: if lines: lines += render_lines(Text(""), width) + # A day divider is this transcript's section heading — it pins to the + # top row while its day scrolls under it and ^PgUp/^PgDn step by it — + # so it wears the app's heading dress (``── Label ──`` in accent, see + # menus.section_heading) rather than reading as grey chrome. The rule + # above the compose line stays muted: that one really is chrome. divider = render_lines( - Text(f"── {stamp:%a} {stamp:%b} {stamp.day} ──", style="muted"), width + Text(f"── {stamp:%a} {stamp:%b} {stamp.day} ──", style="accent"), width ) self._sticky_headers.append((len(lines), [divider[0]])) lines += divider