#[non_exhaustive]pub enum Semantic {
Show 22 variants
Canvas,
Surface,
SurfaceElevated,
Control,
Border,
Ink,
InkMuted,
Accent,
AccentHover,
AccentPressed,
OnAccent,
FocusRing,
Success,
Warning,
Danger,
Scrim,
Chart1,
Chart2,
Chart3,
Chart4,
Chart5,
ChartGrid,
}Expand description
Semantic color roles. Widgets refer to roles, never to raw colors, so every component follows the active theme.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Canvas
bg-000: the canvas behind everything.
Surface
bg-100: panels and sidebars.
SurfaceElevated
bg-200: cards.
Control
bg-300: control fills.
Border
border: hairlines and control outlines.
Ink
ink: primary text and icons.
InkMuted
ink-muted: secondary text, captions and placeholders.
Accent
accent: primary actions and selection.
AccentHover
accent-hover: accent fill while hovered.
AccentPressed
accent-pressed: accent fill while pressed.
OnAccent
on-accent: text and icons drawn on an accent fill.
FocusRing
focus-ring: keyboard focus indicator.
Success
success: positive status.
Warning
warning: cautionary status.
Danger
danger: errors and destructive actions.
Scrim
scrim: the dimmed backdrop behind dialogs and sheets, the same in every theme.
Chart1
chart-1: the first series of a chart, the theme’s accent.
Chart2
chart-2: the second series of a chart.
Chart3
chart-3: the third series of a chart.
Chart4
chart-4: the fourth series of a chart.
Chart5
chart-5: the fifth series of a chart.
ChartGrid
chart-grid: the gridlines of a chart.
Implementations§
Trait Implementations§
impl Copy for Semantic
impl Eq for Semantic
impl StructuralPartialEq for Semantic
Auto Trait Implementations§
impl Freeze for Semantic
impl RefUnwindSafe for Semantic
impl Send for Semantic
impl Sync for Semantic
impl Unpin for Semantic
impl UnsafeUnpin for Semantic
impl UnwindSafe for Semantic
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.