From 1a26441c5289a39cee67f154faaeca2b2d01e48c Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Mon, 24 Jan 2022 19:38:46 -0800 Subject: [PATCH] Adjust syntax highlighting colours Blue is a little dark in some dark themes, meaning the contrast is sometimes too low. Closes #108 --- src/style.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/style.rs b/src/style.rs index fd66bf983..be96cc766 100644 --- a/src/style.rs +++ b/src/style.rs @@ -195,8 +195,8 @@ pub fn color_positions(is_lhs: bool, positions: &[MatchedPos]) -> Vec<(SingleLin let style = match pos.kind { MatchKind::Unchanged { highlight, .. } => Style { foreground: match highlight { - TokenKind::Atom(AtomKind::String) => Color::Cyan, - TokenKind::Atom(AtomKind::Comment) => Color::Blue, + TokenKind::Atom(AtomKind::String) => Color::Magenta, + TokenKind::Atom(AtomKind::Comment) => Color::Cyan, _ => Color::White, }, background: None,