diff options
author | Kirawi | 2021-08-19 16:35:14 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-08-20 01:43:08 +0000 |
commit | da8810809a97d09f9a3117650f3f4364fa8dd20c (patch) | |
tree | 6da94a5d990da5965190639ae90bfba9528531a2 | |
parent | 0595b0626ab45339fc77ac3d8850d786d821989b (diff) |
use `ui.text.focus` for the picker (fix #622)
-rw-r--r-- | helix-term/src/ui/picker.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 08d80777..2cc25c24 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -437,7 +437,7 @@ impl<T: 'static> Component for Picker<T> { // 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); |