pub struct Theme {Show 16 fields
pub base: Color,
pub mantle: Color,
pub crust: Color,
pub surface1: Color,
pub surface2: Color,
pub overlay1: Color,
pub overlay2: Color,
pub text: Color,
pub subtext0: Color,
pub subtext1: Color,
pub sapphire: Color,
pub mauve: Color,
pub green: Color,
pub yellow: Color,
pub red: Color,
pub lavender: Color,
}Expand description
Application theme palette used by rendering code.
All colors are provided as [ratatui::style::Color] and are suitable for
direct use with widgets and styles.
Fields§
§base: ColorPrimary background color for the canvas.
mantle: ColorSlightly lighter background layer used behind panels.
crust: ColorDarkest background shade for deep contrast areas.
surface1: ColorSubtle surface color for component backgrounds (level 1).
surface2: ColorSubtle surface color for component backgrounds (level 2).
overlay1: ColorMuted overlay line/border color (primary).
overlay2: ColorMuted overlay line/border color (secondary).
text: ColorPrimary foreground text color.
subtext0: ColorSecondary text for less prominent content.
subtext1: ColorTertiary text for captions and low-emphasis content.
sapphire: ColorAccent color commonly used for selection and interactive highlights.
mauve: ColorAccent color for emphasized headings or selections.
green: ColorSuccess/positive state color.
yellow: ColorWarning/attention state color.
red: ColorError/danger state color.
lavender: ColorAccent color for subtle emphasis and borders.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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