diff options
author | Gokul Soumya | 2021-06-14 10:11:05 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-14 15:06:53 +0000 |
commit | f33aaba53fee32fb0a6e496c472f4e08bb401237 (patch) | |
tree | 407063aae90be69feaaa3e410621f3a42fc9d9f2 /helix-term/src | |
parent | 9cfa1633702a33b917b108eca5e3ca83484b8a6e (diff) |
Add ui.selection to theme.toml
Enables changing the color of the selection which was previously
hard coded.
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/ui/editor.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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) |