pub struct Theme {Show 24 fields
pub card_due_default_style: Style,
pub card_due_overdue_style: Style,
pub card_due_warning_style: Style,
pub card_priority_high_style: Style,
pub card_priority_low_style: Style,
pub card_priority_medium_style: Style,
pub card_status_active_style: Style,
pub card_status_completed_style: Style,
pub card_status_stale_style: Style,
pub error_text_style: Style,
pub general_style: Style,
pub help_key_style: Style,
pub help_text_style: Style,
pub inactive_text_style: Style,
pub keyboard_focus_style: Style,
pub list_select_style: Style,
pub log_debug_style: Style,
pub log_error_style: Style,
pub log_info_style: Style,
pub log_trace_style: Style,
pub log_warn_style: Style,
pub mouse_focus_style: Style,
pub name: String,
pub progress_bar_style: Style,
}Fields§
§card_due_default_style: Style§card_due_overdue_style: Style§card_due_warning_style: Style§card_priority_high_style: Style§card_priority_low_style: Style§card_priority_medium_style: Style§card_status_active_style: Style§card_status_completed_style: Style§card_status_stale_style: Style§error_text_style: Style§general_style: Style§help_key_style: Style§help_text_style: Style§inactive_text_style: Style§keyboard_focus_style: Style§list_select_style: Style§log_debug_style: Style§log_error_style: Style§log_info_style: Style§log_trace_style: Style§log_warn_style: Style§mouse_focus_style: Style§name: String§progress_bar_style: StyleImplementations§
Source§impl Theme
impl Theme
pub fn all_default_themes() -> Vec<Theme>
pub fn get_style(&self, theme_enum: ThemeEnum) -> Style
pub fn get_mut_style(&mut self, theme_enum: ThemeEnum) -> &mut Style
pub fn name(&self) -> &str
pub fn to_rows( &self, app: &App<'_>, is_active: bool, ) -> (Vec<Row<'_>>, Vec<Row<'_>>)
pub fn update_style( style: &mut Style, fg_color: Option<Color>, bg_color: Option<Color>, modifier: Option<Modifier>, )
pub fn add_modifier_to_style(style: &mut Style, modifier: Modifier)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Theme
impl<'de> Deserialize<'de> for Theme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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