diff --git a/crates/ui-egui/src/stacui.rs b/crates/ui-egui/src/stacui.rs index e9ce4629a5..f54e57ff63 100644 --- a/crates/ui-egui/src/stacui.rs +++ b/crates/ui-egui/src/stacui.rs @@ -1459,7 +1459,7 @@ fn area_buttons(ui: &mut egui::Ui, st: &mut State, ask: &mut Option) { let reading = st.loading.as_ref().map(|(what, _)| what.clone()); ui.horizontal_wrapped(|ui| { for (shape, label) in DRAW { - if ui.selectable_label(st.drawing == Some(shape), tl!(label)).clicked() { + if ui.add(egui::Button::new(tl!(label)).selected(st.drawing == Some(shape))).clicked() { *ask = Some(AreaAsk::Draw(shape)); } }