pub struct UiTheme {}Expand description
Global UI theme.
Fields§
§primary: ColorPrimary color (buttons, sliders, etc.).
secondary: ColorSecondary / background color.
text: ColorText color.
text_hovered: ColorText color when hovered.
input_bg: ColorBackground color for input fields.
border: ColorBorder color.
border_focused: ColorBorder color when focused.
font_size: f32Font size in pixels.
corner_radius: f32Corner radius for rounded rectangles.
padding: Vec2Padding inside widgets.
spacing: f32Spacing between widgets.
animation_speed: f32Animation speed for hover/press transitions.
show_focus: boolWhether to show focus outlines.
Implementations§
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