Skip to main content

style_manager_to_signal

Function style_manager_to_signal 

Source
pub fn style_manager_to_signal(
    theme: Res<'_, StyleManager>,
    store: Option<ResMut<'_, PropertyStore>>,
)
Expand description

Producer half of the W1.6 theme-notify path: on every Changed<StyleManager> tick, writes "dark" / "light" into PropertyStore under the __theme__ global key based on crate::components::StyleManager::effective_dark.

Post wave-D the write lands directly on PropertyStore (no Signals round-trip); apply_theme_signal_to_root_classes consumes it via dirty_peek on the next schedule step.