pub struct UiTheme {Show 17 fields
pub background: Color,
pub surface: Color,
pub surface_variant: Color,
pub border: Color,
pub text_primary: Color,
pub text_secondary: Color,
pub text_disabled: Color,
pub accent: Color,
pub accent_hover: Color,
pub accent_active: Color,
pub error: Color,
pub warning: Color,
pub success: Color,
pub info: Color,
pub hover_overlay: Color,
pub focus_outline: Color,
pub shadow: Color,
}Fields§
§background: Color§surface: Color§surface_variant: Color§border: Color§text_primary: Color§text_secondary: Color§text_disabled: Color§accent: Color§accent_hover: Color§accent_active: Color§error: Color§warning: Color§success: Color§info: Color§hover_overlay: Color§focus_outline: Color§shadow: ColorImplementations§
Source§impl UiTheme
impl UiTheme
pub fn apply_to_style(&self, style: &mut UiStyle)
pub fn dark_theme() -> Self
pub fn light_theme() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiTheme
impl RefUnwindSafe for UiTheme
impl Send for UiTheme
impl Sync for UiTheme
impl Unpin for UiTheme
impl UnsafeUnpin for UiTheme
impl UnwindSafe for UiTheme
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