pub struct ThemeDef {Show 17 fields
pub name: String,
pub accent: ColorSlot,
pub accent_bg: ColorSlot,
pub success: ColorSlot,
pub success_dim: ColorSlot,
pub warning: ColorSlot,
pub error: ColorSlot,
pub highlight: ColorSlot,
pub border: ColorSlot,
pub border_active: ColorSlot,
pub fg_muted: ColorSlot,
pub fg_bold: ColorSlot,
pub footer_key: ColorSlot,
pub badge: ColorSlot,
pub selected_fg: ColorSlot,
pub footer_key_fg: ColorSlot,
pub logo_dot: ColorSlot,
}Expand description
Complete theme definition with all color slots.
Fields§
§name: String§accent: ColorSlot§accent_bg: ColorSlot§success: ColorSlot§success_dim: ColorSlot§warning: ColorSlot§error: ColorSlot§highlight: ColorSlot§border: ColorSlot§border_active: ColorSlot§fg_muted: ColorSlot§fg_bold: ColorSlot§badge: ColorSlot§selected_fg: ColorSlot§logo_dot: ColorSlotAccent for the trailing . of the purple. logotype in overlay
headers (Welcome, Help, What’s-New). Intentionally different from
accent so the dot reads as a separate accent glyph — mirrors
the landing-page hero where the dot is cyan over purple text.
Implementations§
Source§impl ThemeDef
impl ThemeDef
pub fn purple() -> Self
pub fn purple_purple() -> Self
pub fn catppuccin_mocha() -> Self
pub fn dracula() -> Self
pub fn gruvbox_dark() -> Self
pub fn nord() -> Self
pub fn tokyo_night() -> Self
pub fn one_dark() -> Self
pub fn catppuccin_latte() -> Self
pub fn solarized_light() -> Self
pub fn no_color() -> Self
pub fn builtins() -> Vec<ThemeDef>
pub fn find_builtin(name: &str) -> Option<ThemeDef>
pub fn parse_toml(content: &str) -> Option<Self>
pub fn load_custom() -> Vec<ThemeDef>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThemeDef
impl RefUnwindSafe for ThemeDef
impl Send for ThemeDef
impl Sync for ThemeDef
impl Unpin for ThemeDef
impl UnsafeUnpin for ThemeDef
impl UnwindSafe for ThemeDef
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> 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