mirror of
https://github.com/nushell/nushell.git
synced 2025-03-28 08:36:09 +01:00
added ability to change "#" color using header_color (#3374)
This commit is contained in:
parent
8cd639f6a2
commit
e82fbb7bcf
@ -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(),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user