UI: document the Crop and Remove panel functions this PR changes

This commit is contained in:
Hoang Pham committed 2026-11-10 18:25:29 +07:00
1 parent deab7ae71d
commit d8a5b8e41f
2 files changed
+8 -1

No files matched your search

+2 -1
View File
@@ -5,7 +5,8 @@ use super::{Color32, DevelopSettings, Gesture, LightcraftApp, Point, Pos2, Rect,
// ------------------------------------------------------------------------ remove
/// The Remove tool on the photo: every spot's outline and pin (the selected one with its source),
/// click a pin to select its spot, drag a target or source to move it, paint elsewhere to add one.
/// click a pin to select its spot, drag a target or source to move it, paint elsewhere to add one
/// (only while a brush is chosen: with Mode ▸ None nothing is painted and no brush circle shows).
/// The Tool Overlay mode (Shift+H) says which spots show; a hidden spot can't be grabbed, so a
/// click there adds a new one.
pub(super) fn remove_overlay(app: &mut LightcraftApp, ui: &mut egui::Ui, resp: &egui::Response, map: &CanvasMap, d: &DevelopSettings) {
+6
View File
@@ -68,6 +68,9 @@ fn custom_aspect(app: &mut LightcraftApp, ui: &mut egui::Ui) {
ui.data_mut(|d| d.insert_temp(key, (w, h)));
}
/// The Crop and Geometry panels for photo `id`: the aspect ratio and its lock, the angle, the
/// Overlay dropdown (with Flip Overlay for Triangle and Spiral) and the Upright dropdown, where
/// Guided starts drawing guides on the photo and any other mode stops it.
pub(super) fn crop(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) {
let d = app.session.develop_of(id).unwrap_or_default();
header(ui, "Crop");
@@ -268,6 +271,9 @@ pub(super) fn crop(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) {
}
}
/// The Remove panel for photo `id`: the Mode dropdown, where None (shown while no brush is chosen)
/// lets spots be selected and moved without painting new ones, Find Dust Spots, the brush settings
/// (which edit the selected spot too) and the Tool Overlay choice.
pub(super) fn remove(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) {
let d = app.session.develop_of(id).unwrap_or_default();
header(ui, "Remove");