pub struct UiPalette<T = Rgba> {Show 20 fields
pub canvas: T,
pub surface: T,
pub surface_hover: T,
pub surface_selected: T,
pub chrome: T,
pub elevated: T,
pub input: T,
pub text: T,
pub text_secondary: T,
pub text_muted: T,
pub border: T,
pub border_subtle: T,
pub accent: T,
pub accent_foreground: T,
pub info: T,
pub positive: T,
pub warning: T,
pub destructive: T,
pub destructive_foreground: T,
pub scrim: T,
}Fields§
§canvas: T§surface: T§surface_hover: T§surface_selected: T§chrome: T§elevated: T§input: T§text: T§text_secondary: T§text_muted: T§border: T§border_subtle: T§accent: T§accent_foreground: T§info: T§positive: T§warning: T§destructive: T§destructive_foreground: T§scrim: TImplementations§
Source§impl<T: Copy> UiPalette<T>
impl<T: Copy> UiPalette<T>
pub fn control_style( self, variant: ButtonVariant, state: ControlState, ) -> SemanticStyle<T>
pub fn selection_style(self, state: SelectionState) -> SemanticStyle<T>
pub fn notice_style(self, tone: NoticeTone) -> SemanticStyle<T>
Trait Implementations§
impl<T: Copy> Copy for UiPalette<T>
Source§impl<'de, T> Deserialize<'de> for UiPalette<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for UiPalette<T>where
T: Deserialize<'de>,
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
impl<T: Eq> Eq for UiPalette<T>
impl<T: PartialEq> StructuralPartialEq for UiPalette<T>
Auto Trait Implementations§
impl<T> Forget for UiPalette<T>
impl<T> Freeze for UiPalette<T>where
T: Freeze,
impl<T> Move for UiPalette<T>
impl<T> RefUnwindSafe for UiPalette<T>where
T: RefUnwindSafe,
impl<T> Send for UiPalette<T>where
T: Send,
impl<T> Sync for UiPalette<T>where
T: Sync,
impl<T> Unpin for UiPalette<T>where
T: Unpin,
impl<T> UnsafeUnpin for UiPalette<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for UiPalette<T>where
T: UnwindSafe,
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