pub fn nav_button(
ui: &mut Ui,
icon: &str,
label: &str,
is_selected: bool,
has_warning: bool,
) -> ResponseExpand description
Creates a pill-style navigation button with a circular icon background, styled after the web pages’ chip vocabulary: the selected entry is accent-filled, a hovered entry wears the chip tone, and the warning dot uses the stylesheet’s error color.
§Arguments
ui- The egui UI contexticon- The emoji or icon to display in the circlelabel- The text label for the buttonis_selected- Whether this button represents the currently selected pagehas_warning- Whether to draw the small warning dot on the icon
§Returns
The response from the button interaction