pub struct Theme { /* private fields */ }Expand description
Color theme for the TUI.
Implementations§
Source§impl Theme
impl Theme
Sourcepub fn new(config: &ThemeConfig) -> Self
pub fn new(config: &ThemeConfig) -> Self
Create a theme from configuration.
Sourcepub fn header_project(&self) -> Style
pub fn header_project(&self) -> Style
Get the header project name style.
Sourcepub fn header_runner(&self) -> Style
pub fn header_runner(&self) -> Style
Get the header runner style.
Sourcepub fn filter_active(&self) -> Style
pub fn filter_active(&self) -> Style
Get the filter active style (when in filter mode).
Sourcepub fn filter_placeholder(&self) -> Style
pub fn filter_placeholder(&self) -> Style
Get the filter placeholder style.
Sourcepub fn multiselect(&self) -> Style
pub fn multiselect(&self) -> Style
Get the multiselect marker style.
Sourcepub fn description(&self) -> Style
pub fn description(&self) -> Style
Get the description style.
Get the footer style.
Trait Implementations§
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