use ui.text.focus for the picker (fix #622)

This commit is contained in:
Kirawi 2021-08-19 12:35:14 -04:00 committed by Blaž Hrastnik
parent 0595b0626a
commit da8810809a

View File

@ -437,7 +437,7 @@ fn render(&mut self, area: Rect, surface: &mut Surface, cx: &mut Context) {
// 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);