Adjust syntax highlighting colours

Blue is a little dark in some dark themes, meaning the contrast is
sometimes too low.

Closes #108
better_inline
Wilfred Hughes 2022-01-24 19:38:46 +07:00
parent af52cc060f
commit 1a26441c52
1 changed files with 2 additions and 2 deletions

@ -195,8 +195,8 @@ pub fn color_positions(is_lhs: bool, positions: &[MatchedPos]) -> Vec<(SingleLin
let style = match pos.kind { let style = match pos.kind {
MatchKind::Unchanged { highlight, .. } => Style { MatchKind::Unchanged { highlight, .. } => Style {
foreground: match highlight { foreground: match highlight {
TokenKind::Atom(AtomKind::String) => Color::Cyan, TokenKind::Atom(AtomKind::String) => Color::Magenta,
TokenKind::Atom(AtomKind::Comment) => Color::Blue, TokenKind::Atom(AtomKind::Comment) => Color::Cyan,
_ => Color::White, _ => Color::White,
}, },
background: None, background: None,