chiark / gitweb /
Use ratatui's Color::Gray instead of Color::White.
authorSimon Tatham <anakin@pobox.com>
Fri, 29 Dec 2023 22:29:36 +0000 (22:29 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 30 Dec 2023 06:49:07 +0000 (06:49 +0000)
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

index a595f7c1aa6bd758169ec0f61370451a93d1f62b..8442b9658177fedc3bc3351b567699f6fd8681aa 100644 (file)
@@ -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