pub struct Style {
pub font: FontId,
pub default_cell_width: i32,
pub padding: i32,
pub spacing: i32,
pub indent: i32,
pub title_height: i32,
pub scrollbar_size: i32,
pub thumb_size: i32,
pub colors: [Color; 14],
}Expand description
Collection of visual constants that drive widget appearance.
Fields§
§font: FontIdFont used for all text rendering.
default_cell_width: i32Default width used by layouts when no size policy overrides it.
padding: i32Inner padding applied to most widgets.
spacing: i32Spacing between cells in a layout.
indent: i32Indentation applied to nested content.
title_height: i32Height of window title bars.
scrollbar_size: i32Width of scrollbars.
thumb_size: i32Size of slider thumbs.
colors: [Color; 14]Palette of ControlColor entries.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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