From 255517c2a9cef6d8ab0c4562dbdfa5f714eb2fa6 Mon Sep 17 00:00:00 2001 From: Arijit Basu Date: Fri, 7 Jul 2023 15:27:02 +0530 Subject: [PATCH] Also respect general.table.headers.cols[*].style --- src/ui.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui.rs b/src/ui.rs index 2673c19..7b44b7d 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -832,7 +832,10 @@ fn draw_table( .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::>(), ) .height(header_height)