pub struct Theme {
pub colors: ColorScheme,
pub typography: Typography,
pub shapes: Shapes,
pub spacing: Spacing,
pub elevation: Elevation,
pub motion: MotionScheme,
pub focus: Color,
pub scrollbar_track: Color,
pub scrollbar_thumb: Color,
pub button_bg: Color,
pub button_bg_hover: Color,
pub button_bg_pressed: Color,
}Fields§
§colors: ColorScheme§typography: Typography§shapes: Shapes§spacing: Spacing§elevation: Elevation§motion: MotionScheme§focus: Color§scrollbar_track: Color§scrollbar_thumb: ColorImplementations§
Source§impl Theme
impl Theme
pub fn with_colors(self, colors: ColorScheme) -> Self
Trait Implementations§
impl Copy 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