From da8810809a97d09f9a3117650f3f4364fa8dd20c Mon Sep 17 00:00:00 2001 From: Kirawi <67773714+kirawi@users.noreply.github.com> Date: Thu, 19 Aug 2021 12:35:14 -0400 Subject: [PATCH] use `ui.text.focus` for the picker (fix #622) --- helix-term/src/ui/picker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 08d807776..2cc25c249 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -437,7 +437,7 @@ impl Component for Picker { // subtract the area of the prompt (-2) and current item marker " > " (-3) let inner = Rect::new(inner.x + 3, inner.y + 2, inner.width - 3, inner.height - 2); - let selected = Style::default().fg(Color::Rgb(255, 255, 255)); + let selected = cx.editor.theme.get("ui.text.focus"); let rows = inner.height; let offset = self.cursor / (rows as usize) * (rows as usize);