mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-02 06:44:23 +01:00
add color to headers, see how to make it configurable
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user