fix header's and row's default style

pull/10/head
Takayuki Maeda 3 years ago
parent 3d269349a3
commit 1d9848d7db

@ -155,7 +155,7 @@ impl RecordTable {
let headers = self.headers();
let header_cells = headers
.iter()
.map(|h| Cell::from(h.to_string()).style(Style::default().fg(Color::White)));
.map(|h| Cell::from(h.to_string()).style(Style::default()));
let header = Row::new(header_cells).height(1).bottom_margin(1);
let rows = self.rows();
let rows = rows.iter().map(|item| {
@ -167,7 +167,7 @@ impl RecordTable {
+ 1;
let cells = item
.iter()
.map(|c| Cell::from(c.to_string()).style(Style::default().fg(Color::White)));
.map(|c| Cell::from(c.to_string()).style(Style::default()));
Row::new(cells).height(height as u16).bottom_margin(1)
});
let widths = (0..10)

Loading…
Cancel
Save