pub struct ThemeColors {Show 22 fields
pub name: &'static str,
pub scheme: ThemeColorScheme,
pub base_100: Color,
pub base_200: Color,
pub base_300: Color,
pub base_content: Color,
pub primary: Color,
pub primary_content: Color,
pub secondary: Color,
pub secondary_content: Color,
pub accent: Color,
pub accent_content: Color,
pub neutral: Color,
pub neutral_content: Color,
pub info: Color,
pub info_content: Color,
pub success: Color,
pub success_content: Color,
pub warning: Color,
pub warning_content: Color,
pub error: Color,
pub error_content: Color,
}Fields§
§name: &'static str§scheme: ThemeColorScheme§base_100: Color§base_200: Color§base_300: Color§base_content: Color§primary: Color§primary_content: Color§secondary: Color§secondary_content: Color§accent: Color§accent_content: Color§neutral: Color§neutral_content: Color§info: Color§info_content: Color§success: Color§success_content: Color§warning: Color§warning_content: Color§error: Color§error_content: ColorImplementations§
Source§impl ThemeColors
impl ThemeColors
Sourcepub fn sui() -> ThemeColors
pub fn sui() -> ThemeColors
SUI’s branded light palette. This is an explicit alias for
Self::light so applications can distinguish the SUI preset from
other built-in light themes.
pub fn light() -> ThemeColors
Sourcepub fn neutral() -> ThemeColors
pub fn neutral() -> ThemeColors
Neutral black, white, and gray tokens for professional interfaces that do not have an application-specific color preference.
Status colors remain semantic so success, warning, danger, and informational feedback do not lose meaning.
Sourcepub fn neutral_dark() -> ThemeColors
pub fn neutral_dark() -> ThemeColors
Dark companion to Self::neutral, using achromatic surfaces,
controls, focus, selection, and primary actions.
pub fn dark() -> ThemeColors
pub fn high_contrast() -> ThemeColors
pub fn with_scheme(scheme: ThemeColorScheme) -> 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ThemeColors
Source§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 PartialEq for ThemeColors
impl PartialEq 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
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.