Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

New Document: category tabs and preset cards show a pointer, not a text cursor (#3647)

Max Witted0286d324e0
diff --git a/crates/ui-egui/src/new_doc_ui.rs b/crates/ui-egui/src/new_doc_ui.rs
index 563a9a5fc..0fb7b7b21 100644
--- a/crates/ui-egui/src/new_doc_ui.rs
+++ b/crates/ui-egui/src/new_doc_ui.rs
@@ -583,6 +583,7 @@ pub fn body(app: &mut crate::PhotocraftApp, ui: &mut egui::Ui, f: &mut Map<Strin
ui.spacing_mut().item_spacing.x = 8.0;
for c in row {
let (r, resp) = ui.allocate_exact_size(card, Sense::click());
+ let resp = resp.on_hover_cursor(egui::CursorIcon::PointingHand);
let (w, h, _) = c.size(&units);
let on = match c {
Card::Builtin(p) => chosen == p.0,