aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-08-24 04:24:36 +0000
committerBlaž Hrastnik2021-08-24 04:25:39 +0000
commitbf5b9a9f354135933d7970863cf81e5a36585d03 (patch)
tree354d68c44f48eb7fa89d3689eb159f6141cfaf86 /helix-term/src/ui
parente6cb183134c34a55b2bb6edba468fbcb3b1118c4 (diff)
ui: Tone down the preview highlight by adding a new scope
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/picker.rs5
1 files changed, 4 insertions, 1 deletions
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<T: 'static> Component for FilePicker<T> {
(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")),
);
}
}