From dd6db430134914538df8a2d664891abf81e23a7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Wed, 3 Mar 2021 17:56:22 +0900 Subject: [PATCH] ui: Adjust selection colors. --- helix-term/src/ui/editor.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 0e9e53f96..0bfc1a336 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -196,10 +196,12 @@ impl EditorView { Range::new(start, end) }; let text = text.slice(..); - let cursor_style = Style::default().bg(Color::Rgb(255, 255, 255)); + let cursor_style = Style::default() + // .bg(Color::Rgb(255, 255, 255)) + .add_modifier(Modifier::REVERSED); - // cedar - let selection_style = Style::default().bg(Color::Rgb(128, 47, 0)); + // let selection_style = Style::default().bg(Color::Rgb(94, 0, 128)); + let selection_style = Style::default().bg(Color::Rgb(84, 0, 153)); for selection in view .doc