pub struct ResolvedThemeDefaults {Show 39 fields
pub font: ResolvedFontSpec,
pub line_height: f32,
pub mono_font: ResolvedFontSpec,
pub background: Rgba,
pub foreground: Rgba,
pub accent: Rgba,
pub accent_foreground: Rgba,
pub surface: Rgba,
pub border: Rgba,
pub muted: Rgba,
pub shadow: Rgba,
pub link: Rgba,
pub selection: Rgba,
pub selection_foreground: Rgba,
pub selection_inactive: Rgba,
pub disabled_foreground: Rgba,
pub danger: Rgba,
pub danger_foreground: Rgba,
pub warning: Rgba,
pub warning_foreground: Rgba,
pub success: Rgba,
pub success_foreground: Rgba,
pub info: Rgba,
pub info_foreground: Rgba,
pub radius: f32,
pub radius_lg: f32,
pub frame_width: f32,
pub disabled_opacity: f32,
pub border_opacity: f32,
pub shadow_enabled: bool,
pub focus_ring_color: Rgba,
pub focus_ring_width: f32,
pub focus_ring_offset: f32,
pub spacing: ResolvedThemeSpacing,
pub icon_sizes: ResolvedIconSizes,
pub text_scaling_factor: f32,
pub reduce_motion: bool,
pub high_contrast: bool,
pub reduce_transparency: bool,
}Expand description
Fully resolved global theme defaults where every field is guaranteed populated.
Mirrors crate::model::ThemeDefaults but with concrete (non-Option) types.
Produced by the resolution/validation pipeline.
Fields§
§font: ResolvedFontSpecPrimary UI font.
line_height: f32Line height multiplier.
mono_font: ResolvedFontSpecMonospace font for code/terminal content.
background: RgbaMain window/surface background color.
foreground: RgbaDefault text color.
accent: RgbaAccent/brand color for interactive elements.
accent_foreground: RgbaText color used on accent-colored backgrounds.
surface: RgbaElevated surface color.
border: RgbaBorder/divider color.
muted: RgbaSecondary/subdued text color.
shadow: RgbaDrop shadow color.
link: RgbaHyperlink text color.
selection: RgbaSelection highlight background.
selection_foreground: RgbaText color over selection highlight.
selection_inactive: RgbaSelection background when window is unfocused.
disabled_foreground: RgbaText color for disabled controls.
danger: RgbaDanger/error color.
danger_foreground: RgbaText color on danger-colored backgrounds.
warning: RgbaWarning color.
warning_foreground: RgbaText color on warning-colored backgrounds.
success: RgbaSuccess/confirmation color.
success_foreground: RgbaText color on success-colored backgrounds.
info: RgbaInformational color.
info_foreground: RgbaText color on info-colored backgrounds.
radius: f32Default corner radius in logical pixels.
radius_lg: f32Large corner radius.
frame_width: f32Border/frame width in logical pixels.
disabled_opacity: f32Opacity for disabled controls.
border_opacity: f32Border alpha multiplier.
shadow_enabled: boolWhether drop shadows are enabled.
focus_ring_color: RgbaFocus indicator outline color.
focus_ring_width: f32Focus indicator outline width.
focus_ring_offset: f32Gap between element edge and focus indicator.
spacing: ResolvedThemeSpacingLogical spacing scale.
icon_sizes: ResolvedIconSizesPer-context icon sizes.
text_scaling_factor: f32Text scaling factor (1.0 = no scaling).
reduce_motion: boolWhether the user has requested reduced motion.
high_contrast: boolWhether a high-contrast mode is active.
reduce_transparency: boolWhether the user has requested reduced transparency.
Trait Implementations§
Source§impl Clone for ResolvedThemeDefaults
impl Clone for ResolvedThemeDefaults
Source§fn clone(&self) -> ResolvedThemeDefaults
fn clone(&self) -> ResolvedThemeDefaults
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more