Remove outdated comments around color

This commit is contained in:
sholderbach 2024-08-04 22:35:37 +02:00
parent d1680c58f0
commit 5041ce9895

View File

@ -68,7 +68,6 @@ fn get_documentation(
let nu_config = stack.get_config(engine_state); let nu_config = stack.get_config(engine_state);
// Create ansi colors // Create ansi colors
//todo make these configurable -- pull from enginestate.config
let help_section_name: String = get_ansi_color_for_component_or_default( let help_section_name: String = get_ansi_color_for_component_or_default(
engine_state, engine_state,
&nu_config, &nu_config,
@ -82,13 +81,12 @@ fn get_documentation(
"shape_external", "shape_external",
"\x1b[36m", "\x1b[36m",
); // default: cyan ); // default: cyan
// was const bb: &str = "\x1b[1;34m"; // bold blue
let help_subcolor_two: String = get_ansi_color_for_component_or_default( let help_subcolor_two: String = get_ansi_color_for_component_or_default(
engine_state, engine_state,
&nu_config, &nu_config,
"shape_block", "shape_block",
"\x1b[94m", "\x1b[94m",
); // default: light blue (nobold, should be bolding the *names*) ); // default: light blue
let cmd_name = &sig.name; let cmd_name = &sig.name;
let mut long_desc = String::new(); let mut long_desc = String::new();
@ -478,7 +476,6 @@ pub fn get_flags_section<F>(
where where
F: FnMut(&nu_protocol::Value) -> String, F: FnMut(&nu_protocol::Value) -> String,
{ {
//todo make these configurable -- pull from enginestate.config
let help_section_name: String; let help_section_name: String;
let help_subcolor_one: String; let help_subcolor_one: String;
let help_subcolor_two: String; let help_subcolor_two: String;
@ -499,14 +496,12 @@ where
"shape_external", "shape_external",
"\x1b[36m", "\x1b[36m",
); // default: cyan ); // default: cyan
// was const bb: &str = "\x1b[1;34m"; // bold blue
help_subcolor_two = get_ansi_color_for_component_or_default( help_subcolor_two = get_ansi_color_for_component_or_default(
engine_state, engine_state,
nu_config, nu_config,
"shape_block", "shape_block",
"\x1b[94m", "\x1b[94m",
); ); // default: light blue
// default: light blue (nobold, should be bolding the *names*)
} else { } else {
help_section_name = "\x1b[32m".to_string(); help_section_name = "\x1b[32m".to_string();
help_subcolor_one = "\x1b[36m".to_string(); help_subcolor_one = "\x1b[36m".to_string();