From f620af1455bdd5915a51754ccbd7ebe01a5a60c9 Mon Sep 17 00:00:00 2001 From: Florian Dehau Date: Sun, 1 Apr 2018 10:34:56 +0200 Subject: [PATCH] [examples][list] Change style of first list --- examples/list.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/list.rs b/examples/list.rs index 0accb3cd..38f03edd 100644 --- a/examples/list.rs +++ b/examples/list.rs @@ -160,11 +160,13 @@ fn draw(t: &mut Terminal, app: &App) { .direction(Direction::Horizontal) .sizes(&[Size::Percent(50), Size::Percent(50)]) .render(t, &app.size, |t, chunks| { + let style = Style::default().fg(Color::Black).bg(Color::White); SelectableList::default() .block(Block::default().borders(Borders::ALL).title("List")) .items(&app.items) .select(app.selected) - .highlight_style(Style::default().fg(Color::Yellow).modifier(Modifier::Bold)) + .style(style) + .highlight_style(style.clone().fg(Color::LightGreen).modifier(Modifier::Bold)) .highlight_symbol(">") .render(t, &chunks[0]); {