pub struct FsTheme {Show 14 fields
pub background: Rgb565,
pub surface: Rgb565,
pub surface_alt: Rgb565,
pub accent: Rgb565,
pub text_primary: Rgb565,
pub text_secondary: Rgb565,
pub text_on_accent: Rgb565,
pub success: Rgb565,
pub warning: Rgb565,
pub danger: Rgb565,
pub text_on_danger: Rgb565,
pub dim: Rgb565,
pub tab_bar_height: u32,
pub modal_margin: u32,
}Expand description
Global semantic palette and sizing metrics used across widgets.
Fields§
§background: Rgb565Background color for full-screen surfaces.
surface: Rgb565Primary card and panel surface color.
surface_alt: Rgb565Secondary surface used for separators and contrast.
accent: Rgb565Accent color for primary actions and emphasis.
text_primary: Rgb565Default foreground color for strong text.
text_secondary: Rgb565Secondary foreground color for supporting text.
text_on_accent: Rgb565Foreground color to render on accent surfaces.
success: Rgb565Semantic success color.
warning: Rgb565Semantic warning color.
danger: Rgb565Semantic danger or destructive color.
text_on_danger: Rgb565Foreground color to render on danger surfaces.
dim: Rgb565Base dimming color used for overlays.
tab_bar_height: u32Height of the tab bar container.
modal_margin: u32Outer margin used when presenting modals.
Implementations§
Source§impl FsTheme
impl FsTheme
Sourcepub const fn neutral_light() -> Self
pub const fn neutral_light() -> Self
Returns the default neutral light palette.
Sourcepub const fn with_neutral_surfaces(
self,
background: Rgb565,
surface: Rgb565,
surface_alt: Rgb565,
) -> Self
pub const fn with_neutral_surfaces( self, background: Rgb565, surface: Rgb565, surface_alt: Rgb565, ) -> Self
Overrides the neutral surface colors.
Sourcepub const fn with_text_colors(
self,
text_primary: Rgb565,
text_secondary: Rgb565,
) -> Self
pub const fn with_text_colors( self, text_primary: Rgb565, text_secondary: Rgb565, ) -> Self
Overrides the primary and secondary text colors.
Sourcepub const fn with_accent(self, accent: Rgb565, text_on_accent: Rgb565) -> Self
pub const fn with_accent(self, accent: Rgb565, text_on_accent: Rgb565) -> Self
Overrides the accent color pair.
Sourcepub const fn with_status_colors(
self,
success: Rgb565,
warning: Rgb565,
danger: Rgb565,
text_on_danger: Rgb565,
) -> Self
pub const fn with_status_colors( self, success: Rgb565, warning: Rgb565, danger: Rgb565, text_on_danger: Rgb565, ) -> Self
Overrides the semantic success, warning, and danger colors.
Sourcepub const fn with_metrics(self, tab_bar_height: u32, modal_margin: u32) -> Self
pub const fn with_metrics(self, tab_bar_height: u32, modal_margin: u32) -> Self
Overrides common widget metrics.