pub struct ColorPalette {Show 29 fields
pub primary: Color,
pub secondary: Color,
pub text: Color,
pub text_dim: Color,
pub text_disabled: Color,
pub text_placeholder: Color,
pub text_muted: Color,
pub bg: Color,
pub surface: Color,
pub surface_raised: Color,
pub border_focused: Color,
pub border: Color,
pub border_disabled: Color,
pub border_accent: Color,
pub separator: Color,
pub highlight_fg: Color,
pub highlight_bg: Color,
pub menu_highlight_fg: Color,
pub menu_highlight_bg: Color,
pub pressed_fg: Color,
pub pressed_bg: Color,
pub success: Color,
pub warning: Color,
pub error: Color,
pub info: Color,
pub diff_add_fg: Color,
pub diff_add_bg: Color,
pub diff_del_fg: Color,
pub diff_del_bg: Color,
}Expand description
A semantic color palette with ~30 color roles.
Each color has a specific semantic purpose (e.g., primary for focus/selection,
error for error states) rather than a visual description.
Fields§
§primary: ColorFocus/selection accent color.
secondary: ColorSecondary accent color.
text: ColorMain text color.
text_dim: ColorSecondary text, line numbers.
text_disabled: ColorDisabled/inactive text.
text_placeholder: ColorPlaceholder text.
text_muted: ColorShortcuts/hints.
bg: ColorMain background.
surface: ColorElevated surface - menus/popups.
surface_raised: ColorBar/header background.
border_focused: ColorFocused border.
border: ColorDefault border.
border_disabled: ColorDisabled border.
border_accent: ColorAccent border - panels.
separator: ColorDividers/separators.
highlight_fg: ColorHighlighted foreground.
highlight_bg: ColorHighlighted background.
Menu highlight foreground.
Menu highlight background.
pressed_fg: ColorPressed foreground.
pressed_bg: ColorPressed background.
success: ColorSuccess color.
warning: ColorWarning color.
error: ColorError: Color,
info: ColorInfo color.
diff_add_fg: ColorDiff addition foreground.
diff_add_bg: ColorDiff addition background.
diff_del_fg: ColorDiff deletion foreground.
diff_del_bg: ColorDiff deletion background.
Trait Implementations§
Source§impl Clone for ColorPalette
impl Clone for ColorPalette
Source§fn clone(&self) -> ColorPalette
fn clone(&self) -> ColorPalette
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ColorPalette
impl Debug for ColorPalette
Source§impl PartialEq for ColorPalette
impl PartialEq for ColorPalette
impl Eq for ColorPalette
impl StructuralPartialEq for ColorPalette
Auto Trait Implementations§
impl Freeze for ColorPalette
impl RefUnwindSafe for ColorPalette
impl Send for ColorPalette
impl Sync for ColorPalette
impl Unpin for ColorPalette
impl UnsafeUnpin for ColorPalette
impl UnwindSafe for ColorPalette
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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