#[non_exhaustive]pub struct Theme {
pub background: Color,
pub surface: Color,
pub border: Color,
pub text: Color,
pub text_secondary: Color,
pub accent: Color,
pub accent_hover: Color,
pub accent_pressed: Color,
pub disabled: Color,
pub radius: f32,
pub font_size: f32,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.background: Color§surface: Color§border: Color§text: Color§text_secondary: Color§accent: Color§accent_hover: Color§accent_pressed: Color§disabled: Color§radius: f32§font_size: f32Implementations§
Source§impl Theme
impl Theme
pub fn from_tokens_str(src: &str) -> Result<Self, TokensError>
pub fn from_tokens_file(path: &str) -> Result<Self, TokensError>
Trait Implementations§
impl Copy for Theme
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