Skip to content

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

Merge upstream/main into Layers Panel feature (preserve new upstream changes)

abc2cb135dc559a650
diff --cc crates/ui-egui/src/lib.rs
index f395aaeeb,48072baa8..6a2511edc
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@@ -424,12 -424,10 +425,14 @@@ pub struct PhotocraftApp
pub(crate) menu_cache: Option<menus::ItemCache>,
/// Move tool drag shown live (`move_ui`).
pub(crate) move_preview: Option<move_ui::MovePreview>,
+ /// Move tool › Show Highlight on Rollover: the last hover answer (`move_hover`).
+ pub(crate) move_hover: Option<move_hover::Hover>,
/// A blend mode hovered in the Layers panel, shown live (`blend_preview`).
pub(crate) blend_preview: Option<blend_preview::BlendPreview>,
+ /// Layers panel drag: temporary reordered document displayed until mouse release.
+ pub(crate) reorder_preview: Option<layers_panel_ui::ReorderPreview>,
+ /// Whether the currently dragged layer is over a valid destination this frame.
+ pub(crate) reorder_preview_hit: bool,
/// Patch Tool drag: the healed document at the pointer (`patch_preview`).
pub(crate) patch_preview: Option<patch_preview::PatchPreview>,
pub(crate) shape_stroke_preview: Option<shape_stroke_ui::ShapeStrokePreview>,
@@@ -630,9 -628,8 +633,10 @@@ impl PhotocraftApp
trail: None,
menu_cache: None,
move_preview: None,
+ move_hover: None,
blend_preview: None,
+ reorder_preview: None,
+ reorder_preview_hit: false,
patch_preview: None,
shape_stroke_preview: None,
magnetic: Default::default(),