pub struct ThemeSpacing {
pub xs: f32,
pub sm: f32,
pub md: f32,
pub lg: f32,
pub xl: f32,
}Expand description
Standard spacing scale in logical pixels.
§Examples
use ailloli_ui_core::style::Theme;
assert_eq!(Theme::dark().spacing().xl, 24.0);Fields§
§xs: f32Extra-small spacing in logical pixels.
sm: f32Small spacing in logical pixels.
md: f32Medium spacing in logical pixels.
lg: f32Large spacing in logical pixels.
xl: f32Extra-large spacing in logical pixels.
Trait Implementations§
Source§impl Clone for ThemeSpacing
impl Clone for ThemeSpacing
Source§fn clone(&self) -> ThemeSpacing
fn clone(&self) -> ThemeSpacing
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThemeSpacing
impl Debug for ThemeSpacing
Source§impl PartialEq for ThemeSpacing
impl PartialEq for ThemeSpacing
impl Copy for ThemeSpacing
impl StructuralPartialEq for ThemeSpacing
Auto Trait Implementations§
impl Freeze for ThemeSpacing
impl RefUnwindSafe for ThemeSpacing
impl Send for ThemeSpacing
impl Sync for ThemeSpacing
impl Unpin for ThemeSpacing
impl UnwindSafe for ThemeSpacing
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