Skip to main content

apply_palette

Function apply_palette 

Source
pub fn apply_palette(id: PaletteId, window: &mut Window, cx: &mut App) -> bool
👎Deprecated:

render-time path that leaves the Component theme stale; use init_component_theme and advance_component_theme with Scheme::from_palette(id), or apply_scheme(Scheme::from_palette(id), ..) for Base-only rendering

Expand description

Paint one palette, transitioning from the current paint.

This render-time path does not update the Component theme.