mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-24 09:57:08 -06:00
New Document: category tabs and preset cards show a pointer, not a text cursor (#3647)
Co-authored-by: Brandon Thomas <echelon@gmail.com>
This commit is contained in:
co-authored by
Brandon Thomas
parent
afd5127dc8
commit
ed0286d324
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user