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:
Darren Schroeder
2020-09-01 08:48:27 -05:00
committed by GitHub
parent adbbcafd30
commit 569345e1d4
2 changed files with 22 additions and 1 deletions

View File

@ -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 {