pub struct Theme {Show 98 fields
pub bg_primary: Color,
pub bg_title: Color,
pub bg_input: Color,
pub bg_panel: Color,
pub border_title: Color,
pub border_message: Color,
pub border_input: Color,
pub border_input_loading: Color,
pub border_config: Color,
pub separator: Color,
pub bubble_ai: Color,
pub bubble_ai_selected: Color,
pub bubble_user: Color,
pub bubble_user_selected: Color,
pub label_ai: Color,
pub label_user: Color,
pub label_selected: Color,
pub text_normal: Color,
pub text_bold: Color,
pub text_dim: Color,
pub text_very_dim: Color,
pub text_white: Color,
pub text_system: Color,
pub title_icon: Color,
pub title_separator: Color,
pub title_model: Color,
pub title_count: Color,
pub title_loading: Color,
pub input_prompt: Color,
pub input_prompt_loading: Color,
pub cursor_fg: Color,
pub cursor_bg: Color,
pub hint_key_fg: Color,
pub hint_key_bg: Color,
pub hint_desc: Color,
pub hint_separator: Color,
pub toast_success_border: Color,
pub toast_success_bg: Color,
pub toast_success_text: Color,
pub toast_error_border: Color,
pub toast_error_bg: Color,
pub toast_error_text: Color,
pub welcome_border: Color,
pub welcome_text: Color,
pub welcome_hint: Color,
pub model_sel_border: Color,
pub model_sel_title: Color,
pub model_sel_active: Color,
pub model_sel_inactive: Color,
pub model_sel_highlight_bg: Color,
pub config_title: Color,
pub config_section: Color,
pub config_pointer: Color,
pub config_label_selected: Color,
pub config_label: Color,
pub config_value: Color,
pub config_edit_bg: Color,
pub config_tab_active_bg: Color,
pub config_tab_active_fg: Color,
pub config_tab_inactive: Color,
pub config_hint_key: Color,
pub config_hint_desc: Color,
pub config_toggle_on: Color,
pub config_toggle_off: Color,
pub config_dim: Color,
pub config_api_key: Color,
pub md_h1: Color,
pub md_h2: Color,
pub md_h3: Color,
pub md_h4: Color,
pub md_heading_sep: Color,
pub md_inline_code_fg: Color,
pub md_inline_code_bg: Color,
pub md_list_bullet: Color,
pub md_blockquote_bar: Color,
pub md_blockquote_text: Color,
pub md_rule: Color,
pub code_border: Color,
pub code_bg: Color,
pub code_default: Color,
pub code_keyword: Color,
pub code_string: Color,
pub code_comment: Color,
pub code_number: Color,
pub code_type: Color,
pub code_primitive: Color,
pub code_macro: Color,
pub code_attribute: Color,
pub code_lifetime: Color,
pub code_shell_var: Color,
pub table_border: Color,
pub table_header: Color,
pub table_body: Color,
pub help_title: Color,
pub help_key: Color,
pub help_desc: Color,
pub help_path: Color,
pub help_bg: Color,
}Expand description
主题配色方案 将所有 UI 颜色归类为语义化字段,方便统一管理
Fields§
§bg_primary: Color主背景色
bg_title: Color标题栏背景
bg_input: Color输入区背景
bg_panel: Color帮助/配置界面背景
border_title: Color标题栏边框
border_message: Color消息区边框
border_input: Color输入区边框(正常)
border_input_loading: Color输入区边框(加载中)
border_config: Color配置界面边框
separator: Color分隔线
bubble_ai: ColorAI 气泡背景
bubble_ai_selected: ColorAI 气泡背景(选中时)
bubble_user: Color用户气泡背景
bubble_user_selected: Color用户气泡背景(选中时)
label_ai: ColorAI 标签颜色
label_user: Color用户标签颜色
label_selected: Color选中标签颜色
text_normal: Color正文颜色
text_bold: Color强调色(加粗文本)
text_dim: Color弱化文字
text_very_dim: Color非常弱化的文字
text_white: Color白色文字(用于输入区等)
text_system: Color系统消息颜色
title_icon: Color标题栏图标色
title_separator: Color标题栏分隔符
title_model: Color模型名称颜色
title_count: Color消息计数颜色
title_loading: Color加载中文字颜色
input_prompt: Color输入提示符颜色
input_prompt_loading: Color输入提示符(加载中)颜色
cursor_fg: Color光标前景
cursor_bg: Color光标背景
hint_key_fg: Color键位标签前景
hint_key_bg: Color键位标签背景
hint_desc: Color键位描述文字
hint_separator: Color提示栏分隔符
toast_success_border: Color成功 Toast 边框
toast_success_bg: Color成功 Toast 背景
toast_success_text: Color成功 Toast 文字
toast_error_border: Color错误 Toast 边框
toast_error_bg: Color错误 Toast 背景
toast_error_text: Color错误 Toast 文字
welcome_border: Color欢迎框边框
welcome_text: Color欢迎文字
welcome_hint: Color欢迎提示文字
model_sel_border: Color模型选择框边框
model_sel_title: Color模型选择框标题
model_sel_active: Color活跃模型颜色
model_sel_inactive: Color非活跃模型颜色
model_sel_highlight_bg: Color选中高亮背景
config_title: Color配置标题颜色
config_section: Color配置分类标题颜色
config_pointer: Color配置选中指针颜色
config_label_selected: Color配置选中标签颜色
config_label: Color配置普通标签颜色
config_value: Color配置值颜色
config_edit_bg: Color配置编辑背景
config_tab_active_bg: Color配置 tab 选中背景
config_tab_active_fg: Color配置 tab 选中前景
config_tab_inactive: Color配置 tab 非选中颜色
config_hint_key: Color配置键位说明颜色
config_hint_desc: Color配置描述颜色
config_toggle_on: Color配置 toggle 开启颜色
config_toggle_off: Color配置 toggle 关闭颜色
config_dim: Color配置弱化文字
config_api_key: ColorAPI Key 隐藏颜色
md_h1: Color标题 h1 颜色
md_h2: Color标题 h2 颜色
md_h3: Color标题 h3 颜色
md_h4: Color标题 h4+ 颜色
md_heading_sep: Color标题分隔线
md_inline_code_fg: Color行内代码前景
md_inline_code_bg: Color行内代码背景
md_list_bullet: Color列表符号颜色
md_blockquote_bar: Color引用块竖线颜色
md_blockquote_text: Color引用块文字颜色
md_rule: Color分隔线颜色
code_border: Color代码块边框颜色
code_bg: Color代码块背景
code_default: Color代码默认文字颜色
code_keyword: Color关键字颜色
code_string: Color字符串颜色
code_comment: Color注释颜色
code_number: Color数字颜色
code_type: Color类型名颜色
code_primitive: Color原始类型颜色
code_macro: Color宏调用颜色
code_attribute: Color属性/装饰器颜色
code_lifetime: Color生命周期颜色
code_shell_var: ColorShell 变量颜色
table_border: Color表格边框颜色
table_header: Color表格表头颜色
table_body: Color表格内容颜色
help_title: Color帮助标题颜色
help_key: Color帮助按键颜色
help_desc: Color帮助描述颜色
help_path: Color帮助文件路径颜色
help_bg: Color帮助背景颜色
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 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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