#[non_exhaustive]pub struct ThemeColors {Show 36 fields
pub accent: Option<Rgba>,
pub background: Option<Rgba>,
pub foreground: Option<Rgba>,
pub surface: Option<Rgba>,
pub border: Option<Rgba>,
pub muted: Option<Rgba>,
pub shadow: Option<Rgba>,
pub primary_background: Option<Rgba>,
pub primary_foreground: Option<Rgba>,
pub secondary_background: Option<Rgba>,
pub secondary_foreground: Option<Rgba>,
pub danger: Option<Rgba>,
pub danger_foreground: Option<Rgba>,
pub warning: Option<Rgba>,
pub warning_foreground: Option<Rgba>,
pub success: Option<Rgba>,
pub success_foreground: Option<Rgba>,
pub info: Option<Rgba>,
pub info_foreground: Option<Rgba>,
pub selection: Option<Rgba>,
pub selection_foreground: Option<Rgba>,
pub link: Option<Rgba>,
pub focus_ring: Option<Rgba>,
pub sidebar: Option<Rgba>,
pub sidebar_foreground: Option<Rgba>,
pub tooltip: Option<Rgba>,
pub tooltip_foreground: Option<Rgba>,
pub popover: Option<Rgba>,
pub popover_foreground: Option<Rgba>,
pub button: Option<Rgba>,
pub button_foreground: Option<Rgba>,
pub input: Option<Rgba>,
pub input_foreground: Option<Rgba>,
pub disabled: Option<Rgba>,
pub separator: Option<Rgba>,
pub alternate_row: Option<Rgba>,
}Expand description
All theme colors as a flat set of 36 semantic color roles.
Organized into logical groups (core, primary, secondary, status, interactive, panel, component) but stored as direct fields for simpler access and flatter TOML serialization.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.accent: Option<Rgba>§background: Option<Rgba>§foreground: Option<Rgba>§surface: Option<Rgba>§border: Option<Rgba>§muted: Option<Rgba>§shadow: Option<Rgba>§primary_background: Option<Rgba>§primary_foreground: Option<Rgba>§secondary_background: Option<Rgba>§secondary_foreground: Option<Rgba>§danger: Option<Rgba>§danger_foreground: Option<Rgba>§warning: Option<Rgba>§warning_foreground: Option<Rgba>§success: Option<Rgba>§success_foreground: Option<Rgba>§info: Option<Rgba>§info_foreground: Option<Rgba>§selection: Option<Rgba>§selection_foreground: Option<Rgba>§link: Option<Rgba>§focus_ring: Option<Rgba>§tooltip: Option<Rgba>§tooltip_foreground: Option<Rgba>§popover: Option<Rgba>§popover_foreground: Option<Rgba>§input: Option<Rgba>§input_foreground: Option<Rgba>§disabled: Option<Rgba>§separator: Option<Rgba>§alternate_row: Option<Rgba>Implementations§
Source§impl ThemeColors
impl ThemeColors
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
Source§impl<'de> Deserialize<'de> for ThemeColorswhere
ThemeColors: Default,
impl<'de> Deserialize<'de> for ThemeColorswhere
ThemeColors: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThemeColors
impl PartialEq for ThemeColors
Source§impl Serialize for ThemeColors
impl Serialize for ThemeColors
impl StructuralPartialEq for ThemeColors
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