From f33aaba53fee32fb0a6e496c472f4e08bb401237 Mon Sep 17 00:00:00 2001 From: Gokul Soumya Date: Mon, 14 Jun 2021 15:41:05 +0530 Subject: Add ui.selection to theme.toml Enables changing the color of the selection which was previously hard coded. --- helix-term/src/ui/editor.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'helix-term') diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 00305fc8..dd385ac9 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -240,8 +240,7 @@ impl EditorView { // .bg(Color::Rgb(255, 255, 255)) .add_modifier(Modifier::REVERSED); - // let selection_style = Style::default().bg(Color::Rgb(94, 0, 128)); - let selection_style = Style::default().bg(Color::Rgb(84, 0, 153)); + let selection_style = theme.get("ui.selection"); for selection in doc .selection(view.id) -- cgit v1.2.3-70-g09d2