pub struct Theme {Show 15 fields
pub name: String,
pub bg_primary: Color,
pub bg_secondary: Color,
pub bg_tertiary: Color,
pub fg_primary: Color,
pub fg_secondary: Color,
pub fg_dim: Color,
pub accent: Color,
pub success: Color,
pub warning: Color,
pub error: Color,
pub info: Color,
pub border: Color,
pub border_focused: Color,
pub selection: Color,
}Expand description
Theme for the TUI
Fields§
§name: String§bg_primary: Color§bg_secondary: Color§bg_tertiary: Color§fg_primary: Color§fg_secondary: Color§fg_dim: Color§accent: Color§success: Color§warning: Color§error: Color§info: Color§border: Color§border_focused: Color§selection: ColorImplementations§
Source§impl Theme
impl Theme
Sourcepub fn arc_academy_orange() -> Self
pub fn arc_academy_orange() -> Self
Arc Academy Orange theme (default)
Sourcepub fn arc_academy_green() -> Self
pub fn arc_academy_green() -> Self
Arc Academy Green theme
Sourcepub fn style_normal(&self) -> Style
pub fn style_normal(&self) -> Style
Get a style for normal text
Sourcepub fn style_secondary(&self) -> Style
pub fn style_secondary(&self) -> Style
Get a style for secondary text
Sourcepub fn style_header(&self) -> Style
pub fn style_header(&self) -> Style
Get a style for headers
Sourcepub fn style_border_focused(&self) -> Style
pub fn style_border_focused(&self) -> Style
Get a style for focused borders
Sourcepub fn style_border(&self) -> Style
pub fn style_border(&self) -> Style
Get a style for unfocused borders
Sourcepub fn style_accent(&self) -> Style
pub fn style_accent(&self) -> Style
Get a style for accent text
Sourcepub fn style_success(&self) -> Style
pub fn style_success(&self) -> Style
Get a style for success messages
Sourcepub fn style_warning(&self) -> Style
pub fn style_warning(&self) -> Style
Get a style for warnings
Sourcepub fn style_error(&self) -> Style
pub fn style_error(&self) -> Style
Get a style for errors
Sourcepub fn style_info(&self) -> Style
pub fn style_info(&self) -> Style
Get a style for info messages
Sourcepub fn style_selection(&self) -> Style
pub fn style_selection(&self) -> Style
Get a style for selections
Sourcepub fn style_block(&self) -> Style
pub fn style_block(&self) -> Style
Get a style for panel/block backgrounds This ensures panels have the correct background color (important for light themes)
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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