pub struct Theme {Show 18 fields
pub palette: Palette,
pub user_message: Style,
pub assistant_message: Style,
pub system_message: Style,
pub code_block: Style,
pub success: Style,
pub warning: Style,
pub error: Style,
pub energy_high: Style,
pub energy_medium: Style,
pub energy_low: Style,
pub border: Style,
pub highlight: Style,
pub muted: Style,
pub cursor: Style,
pub tab_active: Style,
pub tab_inactive: Style,
pub user_message_bg: Style,
}Expand description
Theme configuration for the TUI
Fields§
§palette: PaletteColor palette
user_message: StyleUser message styling
assistant_message: StyleAssistant message styling
system_message: StyleSystem/info message styling
code_block: StyleCode block background
success: StyleSuccess/stable state
warning: StyleWarning state
error: StyleError/failure state
energy_high: StyleHigh energy (unstable)
energy_medium: StyleMedium energy (converging)
energy_low: StyleLow energy (stable)
border: StyleBorder styling
highlight: StyleHighlight/selected item
muted: StyleMuted/secondary text
cursor: StyleStreaming cursor
tab_active: StyleTab active style
tab_inactive: StyleTab inactive style
user_message_bg: StyleUser message background tint
Implementations§
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