mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 01:52:35 +02:00
Color info for config.toml (#2478)
* WIP - compiling but not working * semi-working * making progress * working except for table lines * fmt + clippy * cleaned up some comments * working line colors * fmt, clippy, updated sample config.toml * merges * some info on how to set colors
This commit is contained in:
@ -652,6 +652,7 @@ impl WrappedTable {
|
||||
}
|
||||
|
||||
println!("{}", output);
|
||||
// println!("{:#?}", output);
|
||||
}
|
||||
|
||||
fn print_cell_contents(&self, cells: &[WrappedCell], color_hm: &HashMap<String, Style>) {
|
||||
@ -677,6 +678,7 @@ impl WrappedTable {
|
||||
let remainder = self.column_widths[column.0] - line.width;
|
||||
output.push(' ');
|
||||
|
||||
// println!("Column1: [{:?}]", column.1.style);
|
||||
match column.1.style.alignment {
|
||||
Alignment::Left => {
|
||||
if let Some(color) = column.1.style.color_style {
|
||||
|
Reference in New Issue
Block a user