pub struct Theme {
pub selected_indicator: StyledContent<char>,
pub indicator: StyledContent<char>,
pub selected_text: ContentStyle,
pub text: ContentStyle,
pub selected_highlight: ContentStyle,
pub highlight: ContentStyle,
}Expand description
A theme describes how different parts of the prompt are rendered.
Fields§
§selected_indicator: StyledContent<char>The inidicator to render for the row that is currently selected.
Defaults to > in red on a black background.
indicator: StyledContent<char>The indicator to render for rows that are not selected. Defaults to a space on a black background.
selected_text: ContentStyleThe style to render the text of the row that is currently selected. Defaults to a black background.
text: ContentStyleThe style to render the text of rows that are not selected. Defaults to non-styled text.
selected_highlight: ContentStyleThe style to render the highlighted parts of the text of the row that is currently selected. Defaults to dark cyan on black background.
highlight: ContentStyleThe style to render the highlighted parts of the text of rows that are not selected. Defaults to cyan text.
Trait Implementations§
impl Copy for Theme
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnwindSafe for Theme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more