Skip to content

Commit 7b812b3

Browse files
CSResselclaude
andauthored
feat(tui): Make NORI header text entirely green (#91)
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. Co-authored-by: Claude <noreply@anthropic.com>
1 parent c6c608e commit 7b812b3

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

codex-rs/tui/src/nori/session_header.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,9 @@ impl HistoryCell for NoriSessionHeaderCell {
109109

110110
let mut lines: Vec<Line<'static>> = Vec::new();
111111

112-
// ASCII banner - green and gray colored
112+
// ASCII banner - all green
113113
for banner_line in NORI_BANNER {
114-
let mut spans: Vec<Span<'static>> = Vec::new();
115-
// Color the letters green, and structural characters gray
116-
for ch in banner_line.chars() {
117-
let span = if ch.is_alphabetic() || ch == '_' {
118-
Span::from(ch.to_string()).green().bold()
119-
} else {
120-
Span::from(ch.to_string()).dark_gray()
121-
};
122-
spans.push(span);
123-
}
124-
lines.push(Line::from(spans));
114+
lines.push(Line::from(Span::from(*banner_line).green().bold()));
125115
}
126116

127117
// Empty line after banner

0 commit comments

Comments
 (0)