From a77b334ea14a381a694a6df5b3fb111a7f5fa172 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 29 Dec 2023 22:29:36 +0000 Subject: [PATCH] Use ratatui's Color::Gray instead of Color::White. The former is the ESC[37m colour. The latter seems like the natural name to my way of thinking, but it means tell the terminal you're _really serious_ about wanting proper #ffffff. --- src/tui.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tui.rs b/src/tui.rs index a595f7c..8442b96 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -26,11 +26,11 @@ fn ratatui_style_from_colour(colour: char) -> Style { ' ' => Style::default(), // message separator line, other than the date - 'S' => Style::default().fg(Color::White).bg(Color::Blue) + 'S' => Style::default().fg(Color::Gray).bg(Color::Blue) .add_modifier(Modifier::REVERSED | Modifier::BOLD), // date on a message separator line - 'D' => Style::default().fg(Color::White).bg(Color::Blue) + 'D' => Style::default().fg(Color::Gray).bg(Color::Blue) .add_modifier(Modifier::REVERSED), // username in a From line @@ -67,7 +67,7 @@ fn ratatui_style_from_colour(colour: char) -> Style { 'm' => Style::default().fg(Color::Magenta), // Mastodonochrome logo in file headers - 'J' => Style::default().fg(Color::Blue).bg(Color::White) + 'J' => Style::default().fg(Color::Blue).bg(Color::Gray) .add_modifier(Modifier::REVERSED | Modifier::BOLD), // ~~~~~ underline in file headers -- 2.30.2