Enum pix_engine::gui::theme::ColorType
source · pub enum ColorType {
Background,
Surface,
Primary,
PrimaryVariant,
Secondary,
SecondaryVariant,
Error,
OnBackground,
OnSurface,
OnPrimary,
OnSecondary,
OnError,
}
Expand description
Represents a given color-themed section in a UI.
Variants§
Background
Background color, used to clear the screen each frame and appears behind scrollable content.
Surface
Surface color, used to render surfaces of widgets, cards, sheets, and menus.
Primary
Primary color displayed most often across widgets.
PrimaryVariant
Primary variant color, optional.
Secondary
Secondary color for accents and distinguishing content, optional.
SecondaryVariant
Secondary variant color, optional.
Error
Error highlighting of text and outlines.
OnBackground
Text and icon color when rendered over the background color.
OnSurface
Text and icon color when rendered over the surface color.
OnPrimary
Text and icon color when rendered over a primary color.
OnSecondary
Text and icon color when rendered over a secondary color.
OnError
Text and icon color when rendered over the error color.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ColorType
impl<'de> Deserialize<'de> for ColorType
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 ColorType
impl PartialEq for ColorType
impl Copy for ColorType
impl Eq for ColorType
impl StructuralEq for ColorType
impl StructuralPartialEq for ColorType
Auto Trait Implementations§
impl RefUnwindSafe for ColorType
impl Send for ColorType
impl Sync for ColorType
impl Unpin for ColorType
impl UnwindSafe for ColorType
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
§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
Checks if this value is equivalent to the given key. Read more