pub struct ResolvedThemeDefaults {Show 36 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: ResolvedBorderSpec,
pub disabled_opacity: f32,
pub focus_ring_color: Rgba,
pub focus_ring_width: f32,
pub focus_ring_offset: f32,
pub icon_sizes: ResolvedIconSizes,
pub font_dpi: f32,
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_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: ResolvedBorderSpecBorder sub-struct (color, corner_radius, line_width, etc.).
disabled_opacity: f32Opacity for disabled controls.
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.
font_dpi: f32Font DPI used for pt-to-px conversion during resolution. Defaults to 96.0 when not set on the unresolved variant.
text_scaling_factor: f32Text scaling factor – an accessibility multiplier for enlarged text
(1.0 = no scaling). Connectors and apps should multiply font.size by
this factor when the user’s preference for larger text should be honored.
This is independent of font_dpi (which handles DPI-based
point-to-pixel conversion).
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