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

imgbot
Kirawi 3 years ago committed by Blaž Hrastnik
parent 0595b0626a
commit da8810809a

@ -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);

Loading…
Cancel
Save