added ability to change "#" color using header_color (#3374)

This commit is contained in:
Darren Schroeder 2021-05-01 12:30:50 -05:00 committed by GitHub
parent 8cd639f6a2
commit e82fbb7bcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,11 +153,17 @@ fn values_to_entries(
headers.insert(
0,
StyledString::new(
"#".to_owned(),
TextStyle::new()
.alignment(Alignment::Center)
.fg(nu_ansi_term::Color::Green)
.bold(Some(true)),
"#".to_string(),
TextStyle::new().alignment(Alignment::Center).style(
color_hm
.get("header_color")
.unwrap_or(
&nu_ansi_term::Style::default()
.bold()
.fg(nu_ansi_term::Color::Green),
)
.to_owned(),
),
),
);
}