From 06840cdba8ff86890a214e10167e0daba434e4c4 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 9 Dec 2025 22:52:36 +0000 Subject: [PATCH] fix(tui): Make NORI ASCII banner entirely green Previously the banner had mixed coloring - green for alphabetic characters and gray for structural characters like |, /, \. This simplifies the rendering to apply green bold styling to the entire banner text for a cleaner appearance. --- codex-rs/tui/src/nori/session_header.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/codex-rs/tui/src/nori/session_header.rs b/codex-rs/tui/src/nori/session_header.rs index b17db42a3..7cb9fffde 100644 --- a/codex-rs/tui/src/nori/session_header.rs +++ b/codex-rs/tui/src/nori/session_header.rs @@ -109,19 +109,9 @@ impl HistoryCell for NoriSessionHeaderCell { let mut lines: Vec> = Vec::new(); - // ASCII banner - green and gray colored + // ASCII banner - all green for banner_line in NORI_BANNER { - let mut spans: Vec> = Vec::new(); - // Color the letters green, and structural characters gray - for ch in banner_line.chars() { - let span = if ch.is_alphabetic() || ch == '_' { - Span::from(ch.to_string()).green().bold() - } else { - Span::from(ch.to_string()).dark_gray() - }; - spans.push(span); - } - lines.push(Line::from(spans)); + lines.push(Line::from(Span::from(*banner_line).green().bold())); } // Empty line after banner