pub struct Theme {Show 19 fields
pub name: String,
pub bg_primary: Color,
pub bg_secondary: Color,
pub bg_terminal: Color,
pub text_primary: Color,
pub text_muted: Color,
pub text_terminal: Color,
pub border_default: Color,
pub border_active: Color,
pub accent: Color,
pub success: Color,
pub error: Color,
pub status_starting: Color,
pub status_running: Color,
pub status_completed: Color,
pub status_failed: Color,
pub swarm_purple: Color,
pub ralph_orange: Color,
pub failed_validation_red: Color,
}Expand description
Resolved theme with ratatui colors
Fields§
§name: String§bg_primary: Color§bg_secondary: Color§bg_terminal: Color§text_primary: Color§text_muted: Color§text_terminal: Color§border_default: Color§border_active: Color§accent: Color§success: Color§error: Color§status_starting: Color§status_running: Color§status_completed: Color§status_failed: Color§swarm_purple: Color§ralph_orange: Color§failed_validation_red: ColorImplementations§
Source§impl Theme
impl Theme
Sourcepub fn bg_secondary_style(&self) -> Style
pub fn bg_secondary_style(&self) -> Style
Style for secondary/elevated background areas
Sourcepub fn bg_terminal_style(&self) -> Style
pub fn bg_terminal_style(&self) -> Style
Style for terminal output areas
Sourcepub fn text_style(&self) -> Style
pub fn text_style(&self) -> Style
Style for primary text
Sourcepub fn text_muted_style(&self) -> Style
pub fn text_muted_style(&self) -> Style
Style for muted/secondary text
Sourcepub fn text_terminal_style(&self) -> Style
pub fn text_terminal_style(&self) -> Style
Style for terminal text
Sourcepub fn border_style(&self) -> Style
pub fn border_style(&self) -> Style
Style for default borders
Sourcepub fn border_active_style(&self) -> Style
pub fn border_active_style(&self) -> Style
Style for active/focused borders
Sourcepub fn accent_style(&self) -> Style
pub fn accent_style(&self) -> Style
Style for accent elements (titles, highlights)
Sourcepub fn accent_bold_style(&self) -> Style
pub fn accent_bold_style(&self) -> Style
Style for bold accent elements
Sourcepub fn success_style(&self) -> Style
pub fn success_style(&self) -> Style
Style for success indicators
Sourcepub fn error_style(&self) -> Style
pub fn error_style(&self) -> Style
Style for error indicators
Sourcepub fn border_for_focus(&self, focused: bool) -> Style
pub fn border_for_focus(&self, focused: bool) -> Style
Get border style based on focus state
Sourcepub fn title_color_for_focus(&self, focused: bool) -> Color
pub fn title_color_for_focus(&self, focused: bool) -> Color
Get title color based on focus state
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> 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