pub struct ThemeMetrics {Show 25 fields
pub radius: f32,
pub radius_sm: f32,
pub radius_lg: f32,
pub border_width: f32,
pub focus_ring_width: f32,
pub button_height_sm: f32,
pub button_height_md: f32,
pub button_height_lg: f32,
pub button_padding_x_sm: f32,
pub button_padding_x_md: f32,
pub button_padding_x_lg: f32,
pub input_height: f32,
pub input_height_sm: f32,
pub input_height_lg: f32,
pub input_padding_x: f32,
pub switch_width: f32,
pub switch_height: f32,
pub switch_thumb_padding: f32,
pub checkbox_size: f32,
pub slider_thumb_radius: f32,
pub slider_track_height: f32,
pub font_size_xs: f32,
pub font_size_sm: f32,
pub font_size_md: f32,
pub font_size_lg: f32,
}Expand description
Sizing / spacing / radius / typography tokens.
These mirror gpui-component’s per-component sizing constants but are centralized here so the look stays coherent across components.
Fields§
§radius: f32§radius_sm: f32§radius_lg: f32§border_width: f32§focus_ring_width: f32§input_height: f32§input_height_sm: f32§input_height_lg: f32§input_padding_x: f32§switch_width: f32§switch_height: f32§switch_thumb_padding: f32§checkbox_size: f32§slider_thumb_radius: f32§slider_track_height: f32§font_size_xs: f32§font_size_sm: f32§font_size_md: f32§font_size_lg: f32Trait Implementations§
Source§impl Clone for ThemeMetrics
impl Clone for ThemeMetrics
Source§fn clone(&self) -> ThemeMetrics
fn clone(&self) -> ThemeMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThemeMetrics
impl Debug for ThemeMetrics
Source§impl Default for ThemeMetrics
impl Default for ThemeMetrics
impl Copy for ThemeMetrics
Auto Trait Implementations§
impl Freeze for ThemeMetrics
impl RefUnwindSafe for ThemeMetrics
impl Send for ThemeMetrics
impl Sync for ThemeMetrics
impl Unpin for ThemeMetrics
impl UnsafeUnpin for ThemeMetrics
impl UnwindSafe for ThemeMetrics
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