pub struct ResolvedDefaults {Show 31 fields
pub font: ResolvedFontSpec,
pub line_height: f32,
pub mono_font: ResolvedFontSpec,
pub background_color: Rgba,
pub text_color: Rgba,
pub accent_color: Rgba,
pub accent_text_color: Rgba,
pub surface_color: Rgba,
pub muted_color: Rgba,
pub shadow_color: Rgba,
pub link_color: Rgba,
pub selection_background: Rgba,
pub selection_text_color: Rgba,
pub selection_inactive_background: Rgba,
pub text_selection_background: Rgba,
pub text_selection_color: Rgba,
pub disabled_text_color: Rgba,
pub danger_color: Rgba,
pub danger_text_color: Rgba,
pub warning_color: Rgba,
pub warning_text_color: Rgba,
pub success_color: Rgba,
pub success_text_color: Rgba,
pub info_color: Rgba,
pub info_text_color: Rgba,
pub border: ResolvedDefaultsBorder,
pub disabled_opacity: f32,
pub focus_ring_color: Rgba,
pub focus_ring_width: f32,
pub focus_ring_offset: f32,
pub icon_sizes: ResolvedIconSizes,
}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_color: RgbaMain window/surface background color.
text_color: RgbaDefault text color.
accent_color: RgbaAccent/brand color for interactive elements.
accent_text_color: RgbaText color used on accent-colored backgrounds.
surface_color: RgbaElevated surface color.
muted_color: RgbaSecondary/subdued text color.
shadow_color: RgbaDrop shadow color.
link_color: RgbaHyperlink text color.
selection_background: RgbaSelection highlight background.
selection_text_color: RgbaText color over selection highlight.
selection_inactive_background: RgbaSelection background when window is unfocused.
text_selection_background: RgbaText selection background (inline text highlight).
text_selection_color: RgbaText selection color (inline text highlight).
disabled_text_color: RgbaText color for disabled controls.
danger_color: RgbaDanger/error color.
danger_text_color: RgbaText color on danger-colored backgrounds.
warning_color: RgbaWarning color.
warning_text_color: RgbaText color on warning-colored backgrounds.
success_color: RgbaSuccess/confirmation color.
success_text_color: RgbaText color on success-colored backgrounds.
info_color: RgbaInformational color.
info_text_color: RgbaText color on info-colored backgrounds.
border: ResolvedDefaultsBorderBorder sub-struct (color, corner_radius, line_width, etc.).
disabled_opacity: f32Opacity for disabled controls, applied to the whole widget together
with the disabled colours; 1.0 where the platform dims by colour
alone. See ThemeDefaults::disabled_opacity.
focus_ring_color: RgbaFocus indicator outline color.
focus_ring_width: f32Focus indicator outline width.
focus_ring_offset: f32Gap between element edge and focus indicator.
icon_sizes: ResolvedIconSizesPer-context icon sizes.