From bf5b9a9f354135933d7970863cf81e5a36585d03 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 24 Aug 2021 13:24:36 +0900 Subject: ui: Tone down the preview highlight by adding a new scope --- helix-term/src/ui/picker.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'helix-term/src') diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index c6b9a3e6..a864ab6d 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -153,7 +153,10 @@ impl Component for FilePicker { (end.saturating_sub(start) as u16 + 1) .min(inner.height.saturating_sub(offset)), ), - cx.editor.theme.get("ui.selection"), + cx.editor + .theme + .try_get("ui.highlight") + .unwrap_or_else(|| cx.editor.theme.get("ui.selection")), ); } } -- cgit v1.2.3-70-g09d2