Skip to content

Commit

Permalink
fix(display): use default foreground color instead of white (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncfavier authored and imsnif committed Jan 4, 2020
1 parent da15644 commit 3763f96
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/display/components/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,13 @@ impl<'a> Table<'a> {
}
});

let table_rows =
rows.map(|row| Row::StyledData(row.into_iter(), Style::default().fg(Color::White)));
let table_rows = rows.map(|row| Row::StyledData(row.into_iter(), Style::default()));

::tui::widgets::Table::new(column_names.into_iter(), table_rows)
.block(Block::default().title(self.title).borders(Borders::ALL))
.header_style(Style::default().fg(Color::Yellow))
.widths(&widths[..])
.style(Style::default().fg(Color::White))
.style(Style::default())
.column_spacing(2)
.render(frame, rect);
}
Expand Down

0 comments on commit 3763f96

Please sign in to comment.