pub fn draw_icon_btn(
ui: &mut Ui,
icon: &Icon,
tooltip: &'static str,
is_active: bool,
size: f32,
) -> ResponseExpand description
Single icon button with theme-aware rendering.
Draws a square button with:
- Hover background
- Active/selected background
- Centered SVG icon with theme colors
§Arguments
ui- The egui UI contexticon- The Icon to displaytooltip- Hover tooltip textis_active- Whether button is in active/selected statesize- Button size (square)
§Returns
The egui Response for click handling.