pub struct LabelTheme<'a> {Show 20 fields
pub defaults_style: Style,
pub prompt_style: Style,
pub prompt_prefix: StyledObject<&'a str>,
pub prompt_suffix: StyledObject<&'a str>,
pub success_prefix: StyledObject<&'a str>,
pub success_suffix: StyledObject<&'a str>,
pub error_prefix: StyledObject<&'a str>,
pub error_style: Style,
pub hint_style: Style,
pub values_style: Style,
pub active_item_style: Style,
pub inactive_item_style: Style,
pub active_item_prefix: StyledObject<&'a str>,
pub inactive_item_prefix: StyledObject<&'a str>,
pub checked_item_prefix: StyledObject<&'a str>,
pub unchecked_item_prefix: StyledObject<&'a str>,
pub picked_item_prefix: StyledObject<&'a str>,
pub unpicked_item_prefix: StyledObject<&'a str>,
pub fuzzy_cursor_style: Style,
pub inline_selections: bool,
}Expand description
The theme that goes with others logging utilities in this crate
Fields§
§defaults_style: StyleThe style for default values
prompt_style: StyleThe style for prompt
prompt_prefix: StyledObject<&'a str>Prompt prefix value and style
prompt_suffix: StyledObject<&'a str>Prompt suffix value and style
success_prefix: StyledObject<&'a str>Prompt on success prefix value and style
success_suffix: StyledObject<&'a str>Prompt on success suffix value and style
error_prefix: StyledObject<&'a str>Error prefix value and style
error_style: StyleThe style for error message
hint_style: StyleThe style for hints
values_style: StyleThe style for values on prompt success
active_item_style: StyleThe style for active items
inactive_item_style: StyleThe style for inactive items
active_item_prefix: StyledObject<&'a str>Active item in select prefix value and style
inactive_item_prefix: StyledObject<&'a str>Inactive item in select prefix value and style
checked_item_prefix: StyledObject<&'a str>Checked item in multi select prefix value and style
unchecked_item_prefix: StyledObject<&'a str>Unchecked item in multi select prefix value and style
picked_item_prefix: StyledObject<&'a str>Picked item in sort prefix value and style
unpicked_item_prefix: StyledObject<&'a str>Unpicked item in sort prefix value and style
fuzzy_cursor_style: StyleFormats the cursor for a fuzzy select prompt
inline_selections: boolShow the selections from certain prompts inline
Trait Implementations§
Source§impl Default for LabelTheme<'_>
impl Default for LabelTheme<'_>
Source§impl Theme for LabelTheme<'_>
impl Theme for LabelTheme<'_>
Source§fn format_input_prompt(
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<&str>,
) -> Result
fn format_input_prompt( &self, f: &mut dyn Write, prompt: &str, default: Option<&str>, ) -> Result
Formats an input prompt.
Source§fn format_confirm_prompt(
&self,
f: &mut dyn Write,
prompt: &str,
default: Option<bool>,
) -> Result
fn format_confirm_prompt( &self, f: &mut dyn Write, prompt: &str, default: Option<bool>, ) -> Result
Formats a confirm prompt.
Source§fn format_confirm_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
selection: Option<bool>,
) -> Result
fn format_confirm_prompt_selection( &self, f: &mut dyn Write, prompt: &str, selection: Option<bool>, ) -> Result
Formats a confirm prompt after selection.
Source§fn format_input_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
sel: &str,
) -> Result
fn format_input_prompt_selection( &self, f: &mut dyn Write, prompt: &str, sel: &str, ) -> Result
Formats an input prompt after selection.
Source§fn format_password_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
) -> Result
fn format_password_prompt_selection( &self, f: &mut dyn Write, prompt: &str, ) -> Result
Formats a password prompt after selection.
Source§fn format_multi_select_prompt_selection(
&self,
f: &mut dyn Write,
prompt: &str,
selections: &[&str],
) -> Result
fn format_multi_select_prompt_selection( &self, f: &mut dyn Write, prompt: &str, selections: &[&str], ) -> Result
Formats a multi select prompt after selection.
Source§fn format_select_prompt_item(
&self,
f: &mut dyn Write,
text: &str,
active: bool,
) -> Result
fn format_select_prompt_item( &self, f: &mut dyn Write, text: &str, active: bool, ) -> Result
Formats a select prompt item.
Source§fn format_multi_select_prompt_item(
&self,
f: &mut dyn Write,
text: &str,
checked: bool,
active: bool,
) -> Result
fn format_multi_select_prompt_item( &self, f: &mut dyn Write, text: &str, checked: bool, active: bool, ) -> Result
Formats a multi select prompt item.
Source§fn format_sort_prompt_item(
&self,
f: &mut dyn Write,
text: &str,
picked: bool,
active: bool,
) -> Result
fn format_sort_prompt_item( &self, f: &mut dyn Write, text: &str, picked: bool, active: bool, ) -> Result
Formats a sort prompt item.
Source§fn format_fuzzy_select_prompt(
&self,
f: &mut dyn Write,
prompt: &str,
search_term: &str,
cursor_pos: usize,
) -> Result
fn format_fuzzy_select_prompt( &self, f: &mut dyn Write, prompt: &str, search_term: &str, cursor_pos: usize, ) -> Result
Formats a fuzzy-select prompt after selection.