pub struct Theme {Show 59 fields
pub background: Style,
pub text: Style,
pub border: Style,
pub border_focused: Style,
pub title_separator: Style,
pub title_indicator_connected: Style,
pub title_indicator_disconnected: Style,
pub title_text: Style,
pub user_prefix: Style,
pub system_prefix: Style,
pub assistant_prefix: Style,
pub timestamp: Style,
pub cursor: Style,
pub bold: Modifier,
pub italic: Modifier,
pub strikethrough: Modifier,
pub inline_code: Style,
pub link_text: Style,
pub link_url: Style,
pub heading_1: Style,
pub heading_2: Style,
pub heading_3: Style,
pub heading_4: Style,
pub code_block: Style,
pub table_header: Style,
pub table_cell: Style,
pub table_border: Style,
pub tool_header: Style,
pub tool_executing: Style,
pub tool_completed: Style,
pub tool_failed: Style,
pub input_border: Style,
pub input_text: Style,
pub prompt: Style,
pub throbber_label: Style,
pub throbber_spinner: Style,
pub status_help: Style,
pub status_model: Style,
pub popup_border: Style,
pub popup_header: Style,
pub popup_item: Style,
pub popup_item_selected: Style,
pub popup_item_desc: Style,
pub popup_item_desc_selected: Style,
pub popup_selected_bg: Style,
pub popup_empty: Style,
pub help_text: Style,
pub muted_text: Style,
pub focused_text: Style,
pub focus_indicator: Style,
pub selected: Style,
pub unselected: Style,
pub button_confirm: Style,
pub button_confirm_focused: Style,
pub button_cancel: Style,
pub button_cancel_focused: Style,
pub warning: Style,
pub category: Style,
pub resource: Style,
}Expand description
Complete theme definition for the TUI.
Contains styles for all UI elements including chat messages, markdown formatting, tool execution, input areas, popups, and interactive panels.
Fields§
§background: StyleBackground style for the entire UI.
text: StyleDefault text style.
border: Style§border_focused: Style§title_separator: Style§title_indicator_connected: Style§title_indicator_disconnected: Style§title_text: Style§user_prefix: Style§system_prefix: Style§assistant_prefix: Style§timestamp: Style§cursor: Style§bold: Modifier§italic: Modifier§strikethrough: Modifier§inline_code: Style§link_text: Style§link_url: Style§heading_1: Style§heading_2: Style§heading_3: Style§heading_4: Style§code_block: Style§table_header: Style§table_cell: Style§table_border: Style§tool_header: Style§tool_executing: Style§tool_completed: Style§tool_failed: Style§input_border: Style§input_text: Style§prompt: Style§throbber_label: Style§throbber_spinner: Style§status_help: Style§status_model: Style§popup_border: Style§popup_header: Style§popup_item: Style§popup_item_selected: Style§popup_item_desc: Style§popup_item_desc_selected: Style§popup_selected_bg: Style§popup_empty: Style§help_text: Style§muted_text: Style§focused_text: Style§focus_indicator: Style§selected: Style§unselected: Style§warning: Style§category: Style§resource: StyleImplementations§
Source§impl Theme
impl Theme
pub fn bold(&self) -> Modifier
pub fn italic(&self) -> Modifier
pub fn strikethrough(&self) -> Modifier
pub fn inline_code(&self) -> Style
pub fn link_text(&self) -> Style
pub fn link_url(&self) -> Style
pub fn heading_1(&self) -> Style
pub fn heading_2(&self) -> Style
pub fn heading_3(&self) -> Style
pub fn heading_4(&self) -> Style
pub fn code_block(&self) -> Style
pub fn assistant_prefix(&self) -> Style
pub fn table_header(&self) -> Style
pub fn table_cell(&self) -> Style
pub fn table_border(&self) -> Style
pub fn border(&self) -> Style
pub fn border_focused(&self) -> Style
pub fn popup_border(&self) -> Style
pub fn popup_header(&self) -> Style
pub fn popup_item(&self) -> Style
pub fn popup_item_selected(&self) -> Style
pub fn popup_item_desc(&self) -> Style
pub fn popup_item_desc_selected(&self) -> Style
pub fn popup_selected_bg(&self) -> Style
pub fn popup_empty(&self) -> Style
pub fn status_help(&self) -> Style
pub fn background(&self) -> Style
pub fn text(&self) -> Style
pub fn cursor(&self) -> Style
pub fn help_text(&self) -> Style
pub fn muted_text(&self) -> Style
pub fn focused_text(&self) -> Style
pub fn focus_indicator(&self) -> Style
pub fn selected(&self) -> Style
pub fn unselected(&self) -> Style
pub fn warning(&self) -> Style
pub fn category(&self) -> Style
pub fn resource(&self) -> Style
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