pub struct ThemeColors {Show 16 fields
pub bg_base: Option<u32>,
pub bg_surface: Option<u32>,
pub bg_elevated: Option<u32>,
pub text_primary: Option<u32>,
pub text_secondary: Option<u32>,
pub text_muted: Option<u32>,
pub accent_primary: Option<u32>,
pub accent_hover: Option<u32>,
pub accent_muted: Option<u32>,
pub border_subtle: Option<u32>,
pub border_strong: Option<u32>,
pub success: Option<u32>,
pub warning: Option<u32>,
pub error: Option<u32>,
pub info: Option<u32>,
pub chart_palette: Vec<u32>,
}Expand description
Color palette for a custom theme.
All colors are optional - missing colors are inherited from the base theme. Colors are stored as RGB hex values (e.g., 0x1a1b26 for #1a1b26).
Fields§
§bg_base: Option<u32>Main canvas background (e.g., 0x1a1b26)
bg_surface: Option<u32>Surface/panel background
bg_elevated: Option<u32>Elevated elements (cards, dropdowns)
text_primary: Option<u32>Primary text color
text_secondary: Option<u32>Secondary text color
text_muted: Option<u32>Muted/disabled text color
accent_primary: Option<u32>Primary accent color
accent_hover: Option<u32>Hover accent color (brighter)
accent_muted: Option<u32>Muted accent color (for subtle backgrounds)
border_subtle: Option<u32>Subtle border color
border_strong: Option<u32>Strong border color
success: Option<u32>Success color (green-ish)
warning: Option<u32>Warning color (yellow/orange-ish)
error: Option<u32>Error color (red-ish)
info: Option<u32>Info color (blue-ish)
chart_palette: Vec<u32>Colors for chart series (up to 8)
Implementations§
Trait Implementations§
Source§impl Clone for ThemeColors
impl Clone for ThemeColors
Source§fn clone(&self) -> ThemeColors
fn clone(&self) -> ThemeColors
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThemeColors
impl Debug for ThemeColors
Source§impl Default for ThemeColors
impl Default for ThemeColors
Source§fn default() -> ThemeColors
fn default() -> ThemeColors
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThemeColors
impl RefUnwindSafe for ThemeColors
impl Send for ThemeColors
impl Sync for ThemeColors
impl Unpin for ThemeColors
impl UnsafeUnpin for ThemeColors
impl UnwindSafe for ThemeColors
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