Skip to main content

handle_theme

Function handle_theme 

Source
pub fn handle_theme<T: Component + ?Sized>(c: &mut T, th: &ThemeManager)
Expand description

Recursively sets the theme manager for a component and its children.

This function sets the theme manager for the given component and then recursively calls itself for all children, ensuring that the theme is propagated throughout the entire component subtree.

ยงArguments

  • c - The component to set the theme manager for.
  • th - The ThemeManager to set.