pub struct Theme {Show 27 fields
pub user_message: Style,
pub assistant_message: Style,
pub system_message: Style,
pub input_text: Style,
pub input_cursor: Style,
pub status_bar: Style,
pub header: Style,
pub panel_border: Style,
pub panel_title: Style,
pub highlight: Style,
pub error: Style,
pub thinking_message: Style,
pub code_inline: Style,
pub code_block: Style,
pub streaming_cursor: Style,
pub tool_command: Style,
pub assistant_accent: Style,
pub tool_accent: Style,
pub diff_added_bg: Color,
pub diff_removed_bg: Color,
pub diff_word_added_bg: Color,
pub diff_word_removed_bg: Color,
pub diff_gutter_add: Style,
pub diff_gutter_remove: Style,
pub diff_header: Style,
pub link: Style,
pub table_border: Style,
}Expand description
Visual theme for the TUI dashboard widgets.
Contains Style values for every distinct UI element — message roles,
input fields, borders, diff gutters, hyperlinks, and status elements.
The Default implementation provides a dark blue colour scheme.
§Examples
use zeph_tui::theme::Theme;
let theme = Theme::default();
// User and assistant messages use distinct colours.
assert_ne!(theme.user_message, theme.assistant_message);Fields§
§user_message: Style§assistant_message: Style§system_message: Style§input_text: Style§input_cursor: Style§status_bar: Style§header: Style§panel_border: Style§panel_title: Style§highlight: Style§error: Style§thinking_message: Style§code_inline: Style§code_block: Style§streaming_cursor: Style§tool_command: Style§assistant_accent: Style§tool_accent: Style§diff_added_bg: Color§diff_removed_bg: Color§diff_word_added_bg: Color§diff_word_removed_bg: Color§diff_gutter_add: Style§diff_gutter_remove: Style§diff_header: Style§link: Style§table_border: StyleTrait 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 UnsafeUnpin 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> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request