pub struct ColorfulTheme {
Show 20 fields pub defaults_style: Style, pub prompt_style: Style, pub prompt_prefix: StyledObject<String>, pub prompt_suffix: StyledObject<String>, pub success_prefix: StyledObject<String>, pub success_suffix: StyledObject<String>, pub error_prefix: StyledObject<String>, 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<String>, pub inactive_item_prefix: StyledObject<String>, pub checked_item_prefix: StyledObject<String>, pub unchecked_item_prefix: StyledObject<String>, pub picked_item_prefix: StyledObject<String>, pub unpicked_item_prefix: StyledObject<String>, pub fuzzy_cursor_style: Style, pub fuzzy_match_highlight_style: Style,
}
Expand description

A colorful theme

Fields§

§defaults_style: Style

The style for default values

§prompt_style: Style

The style for prompt

§prompt_prefix: StyledObject<String>

Prompt prefix value and style

§prompt_suffix: StyledObject<String>

Prompt suffix value and style

§success_prefix: StyledObject<String>

Prompt on success prefix value and style

§success_suffix: StyledObject<String>

Prompt on success suffix value and style

§error_prefix: StyledObject<String>

Error prefix value and style

§error_style: Style

The style for error message

§hint_style: Style

The style for hints

§values_style: Style

The style for values on prompt success

§active_item_style: Style

The style for active items

§inactive_item_style: Style

The style for inactive items

§active_item_prefix: StyledObject<String>

Active item in select prefix value and style

§inactive_item_prefix: StyledObject<String>

Inctive item in select prefix value and style

§checked_item_prefix: StyledObject<String>

Checked item in multi select prefix value and style

§unchecked_item_prefix: StyledObject<String>

Unchecked item in multi select prefix value and style

§picked_item_prefix: StyledObject<String>

Picked item in sort prefix value and style

§unpicked_item_prefix: StyledObject<String>

Unpicked item in sort prefix value and style

§fuzzy_cursor_style: Style

Formats the cursor for a fuzzy select prompt

§fuzzy_match_highlight_style: Style

Trait Implementations§

source§

impl Default for ColorfulTheme

source§

fn default() -> ColorfulTheme

Returns the “default value” for a type. Read more
source§

impl Theme for ColorfulTheme

source§

fn format_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result

Formats a prompt.

source§

fn format_error(&self, f: &mut dyn Write, err: &str) -> Result

Formats an error

source§

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

Formats a confirm prompt.

source§

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

Formats an input prompt after selection.

source§

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

Formats a multi select prompt after selection.

source§

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

Formats a multi select prompt item.

source§

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_item( &self, f: &mut dyn Write, text: &str, active: bool, highlight_matches: bool, matcher: &SkimMatcherV2, search_term: &str ) -> Result

Formats a fuzzy select prompt item.

source§

fn format_fuzzy_select_prompt( &self, f: &mut dyn Write, prompt: &str, search_term: &str, bytes_pos: usize ) -> Result

Formats a fuzzy-selectprompt after selection.

source§

fn format_password_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result

Formats a password prompt.
source§

fn format_select_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result

Formats a select prompt.
source§

fn format_select_prompt_selection( &self, f: &mut dyn Write, prompt: &str, sel: &str ) -> Result

Formats a select prompt after selection.
source§

fn format_multi_select_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result

Formats a multi select prompt.
source§

fn format_sort_prompt(&self, f: &mut dyn Write, prompt: &str) -> Result

Formats a sort prompt.
source§

fn format_sort_prompt_selection( &self, f: &mut dyn Write, prompt: &str, selections: &[&str] ) -> Result

Formats a sort prompt after selection.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.