From: Simon Tatham Date: Fri, 29 Dec 2023 22:29:36 +0000 (+0000) Subject: Use ratatui's Color::Gray instead of Color::White. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=a77b334ea14a381a694a6df5b3fb111a7f5fa172;p=mastodonochrome.git 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. --- 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