pub struct Theme {
pub colors: ThemeColors,
pub radius: f32,
pub radius_lg: f32,
pub font_size: f32,
}Expand description
The theme components render with (super::RenderCx::theme). Derefs
to its colors: theme.primary.
Fields§
§colors: ThemeColorsThe semantic colors.
radius: f32The corner radius of controls (buttons, inputs), in points.
radius_lg: f32The corner radius of large surfaces (cards, sheets, dialogs).
font_size: f32The base font size, in points.
Implementations§
Trait Implementations§
Source§impl Deref for Theme
impl Deref for Theme
Source§type Target = ThemeColors
type Target = ThemeColors
The resulting type after dereferencing.
Source§fn deref(&self) -> &ThemeColors
fn deref(&self) -> &ThemeColors
Dereferences the value.
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
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