add color to headers, see how to make it configurable

This commit is contained in:
pedrocarlo
2025-03-05 15:10:30 -03:00
parent b123321692
commit 74ddf40330

View File

@@ -728,7 +728,9 @@ impl<'a> Limbo<'a> {
let header = (0..rows.num_columns())
.map(|i| {
let name = rows.get_column_name(i);
Cell::new(name).add_attribute(Attribute::Bold)
Cell::new(name)
.add_attribute(Attribute::Bold)
.fg(comfy_table::Color::AnsiValue(49)) // Green color for headers
})
.collect::<Vec<_>>();
table.set_header(header);