Skip to main content

sync_radio_visuals

Function sync_radio_visuals 

Source
pub fn sync_radio_visuals(
    parents_q: Query<'_, '_, (Has<Selected>, &RadioStyle), With<RadioButton>>,
    dots: Query<'_, '_, (&ChildOf, &mut Visuals, &mut StyleOverrides), With<RadioDot>>,
)
Expand description

Keep every .radio-dot child in step with its parent’s Selected marker: selected_bg while selected, the dot’s own fill otherwise.