Struct catppuccin_egui::Theme

source ·
pub struct Theme {
Show 26 fields pub rosewater: Color32, pub flamingo: Color32, pub pink: Color32, pub mauve: Color32, pub red: Color32, pub maroon: Color32, pub peach: Color32, pub yellow: Color32, pub green: Color32, pub teal: Color32, pub sky: Color32, pub sapphire: Color32, pub blue: Color32, pub lavender: Color32, pub text: Color32, pub subtext1: Color32, pub subtext0: Color32, pub overlay2: Color32, pub overlay1: Color32, pub overlay0: Color32, pub surface2: Color32, pub surface1: Color32, pub surface0: Color32, pub base: Color32, pub mantle: Color32, pub crust: Color32,
}
Expand description

The colors for a theme variant.

Fields§

§rosewater: Color32§flamingo: Color32§pink: Color32§mauve: Color32§red: Color32§maroon: Color32§peach: Color32§yellow: Color32§green: Color32§teal: Color32§sky: Color32§sapphire: Color32§blue: Color32§lavender: Color32§text: Color32§subtext1: Color32§subtext0: Color32§overlay2: Color32§overlay1: Color32§overlay0: Color32§surface2: Color32§surface1: Color32§surface0: Color32§base: Color32§mantle: Color32§crust: Color32

Trait Implementations§

source§

impl Clone for Theme

source§

fn clone(&self) -> Theme

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Theme

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for Theme

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<Theme> for Theme

source§

fn eq(&self, other: &Theme) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for Theme

source§

impl StructuralEq for Theme

source§

impl StructuralPartialEq for Theme

Auto Trait Implementations§

§

impl RefUnwindSafe for Theme

§

impl Send for Theme

§

impl Sync for Theme

§

impl Unpin for Theme

§

impl UnwindSafe for Theme

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> SerializableAny for Twhere T: 'static + Any + Clone + Send + Sync,