pub struct ColorScheme {Show 19 fields
pub foreground: Color,
pub background: Color,
pub primary: Color,
pub secondary: Color,
pub error: Color,
pub warning: Color,
pub success: Color,
pub muted: Color,
pub accent: Color,
pub border: Color,
pub user_border: Color,
pub user_bg: Color,
pub cursor_fg: Color,
pub cursor_bg: Color,
pub selection_bg: Color,
pub tool_pending_bg: Color,
pub tool_executing_bg: Color,
pub tool_success_bg: Color,
pub tool_error_bg: Color,
}Expand description
Semantic color palette used by components.
Fields§
§foreground: ColorNormal text foreground color.
background: ColorDefault background color.
primary: ColorPrimary accent color (UI elements, labels, user “You”).
secondary: ColorSecondary color (alternative accents).
error: ColorError / danger color.
warning: ColorWarning / caution color.
success: ColorSuccess / confirmation color.
muted: ColorMuted / dimmed text (e.g. placeholders, tool headers).
accent: ColorAccent highlight color.
border: ColorBorder / separator color.
user_border: ColorUser message left-border accent (subtle).
user_bg: ColorUser message background (subtle tint).
cursor_fg: ColorCursor foreground.
cursor_bg: ColorCursor background.
selection_bg: ColorSelection / highlight background.
tool_pending_bg: ColorTool call pending background (waiting state).
tool_executing_bg: ColorTool call executing background (running state).
tool_success_bg: ColorTool call success background (completed successfully).
tool_error_bg: ColorTool call error background (completed with error).
Implementations§
Source§impl ColorScheme
impl ColorScheme
Sourcepub fn to_styles(&self) -> ThemeStyles
pub fn to_styles(&self) -> ThemeStyles
Convert to ratatui Style with all semantic colors.
Trait Implementations§
Source§impl Clone for ColorScheme
impl Clone for ColorScheme
Source§fn clone(&self) -> ColorScheme
fn clone(&self) -> ColorScheme
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ColorScheme
impl Debug for ColorScheme
Auto Trait Implementations§
impl Freeze for ColorScheme
impl RefUnwindSafe for ColorScheme
impl Send for ColorScheme
impl Sync for ColorScheme
impl Unpin for ColorScheme
impl UnsafeUnpin for ColorScheme
impl UnwindSafe for ColorScheme
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,
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>
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