pub struct Theme {
pub name: String,
pub colors: [[Option<u32>; 50]; 3],
pub accent: [Option<u32>; 3],
pub radius: Option<Radius>,
pub spacing: u16,
pub control_height: u16,
pub text: [TextStyle; 7],
pub family: String,
pub family_semibold: String,
pub family_bold: String,
pub family_axes: Vec<([u8; 4], f32)>,
}Expand description
an app theme (see the module header); Default = nothing overridden
Fields§
§name: String§colors: [[Option<u32>; 50]; 3]colour tokens per THEME_LIGHT / _DARK / _CONTRAST (index token / 4), 0xAARRGGBB
accent: [Option<u32>; 3]the accent per mode, 0xRRGGBB: the style derives its accent ramp from it
radius: Option<Radius>§spacing: u16box padding and gaps in percent (100: the app’s values)
control_height: u16DIP; 0 = the style’s
text: [TextStyle; 7]§family: String“” = the style’s faces; a font file (VFS path) or an installed family
family_semibold: String§family_bold: String§family_axes: Vec<([u8; 4], f32)>axis values of a variable family (tag, user units); empty: its defaults
Implementations§
Trait Implementations§
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Forget for Theme
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