Skip to content

Commit

Permalink
Also respect general.table.headers.cols[*].style
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Jul 7, 2023
1 parent d01b6f0 commit f440b56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,10 @@ fn draw_table<B: Backend>(
.to_owned()
.unwrap_or_default()
.iter()
.map(|c| Cell::from(c.format.to_owned().unwrap_or_default()))
.map(|c| {
Cell::from(c.format.to_owned().unwrap_or_default())
.style(c.style.to_owned().into())
})
.collect::<Vec<Cell>>(),
)
.height(header_height)
Expand Down

0 comments on commit f440b56

Please sign in to comment.