Skip to content

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

Integration: track t10

aiongg71991b0a0394
diff --cc contributors/people.toml
index 08325ad35,5d3854eae..474ea4f13
--- a/contributors/people.toml
+++ b/contributors/people.toml
@@@ -198,25 -195,5 +201,28 @@@ sync_github_name = tru
[people.ha1des]
sync_github_name = true
+[people.webdevtodayjason]
+display_name = "Jason Brashear"
+
+[people.AndreeSalazar]
+real_name = "Andreé Salazar"
+sync_github_name = true
+
+[people.LorenzoFasolino]
+real_name = "Lorenzo Fasolino"
+display_name = "Lorenzo Fasolino"
+sync_github_name = false
+
+[people.zolyy]
+real_name = "Gall Zoltan"
+sync_github_name = false
+
+[people.theshubh77]
+real_name = "Shubham Bhamare"
+sync_github_name = true
+
+[people.ksaxena149]
+sync_github_name = true
++
+ [people.giang17]
+ real_name = "Giang Nguyen"
diff --cc crates/ui-egui/src/layer_style/contour.rs
index 3c08df353,2ebe24b94..295cf9f34
--- a/crates/ui-egui/src/layer_style/contour.rs
+++ b/crates/ui-egui/src/layer_style/contour.rs
@@@ -128,11 -105,9 +128,13 @@@ pub(super) fn row
open = !open;
}
let mut chosen: Option<&str> = None;
+ let mut chosen_user: Option<Value> = None;
+ let mut delete: Option<String> = None;
+ let mut act: Option<Act> = None;
+ let user = &app.session.presets.contours;
+ let parent_layer = arrow.layer_id;
egui::Popup::from_response(&arrow).open_bool(&mut open).close_behavior(egui::PopupCloseBehavior::CloseOnClickOutside).show(|ui| {
+ crate::press_menu::above_parent_ui(parent_layer, ui);
ui.spacing_mut().item_spacing = vec2(4.0, 4.0);
egui::Grid::new(("contour-presets", effect, key)).spacing(vec2(4.0, 4.0)).show(ui, |ui| {
for (i, (name, _)) in CONTOURS.iter().enumerate() {
diff --cc crates/ui-egui/src/widgets.rs
index 5e2aad8a9,c9e555613..27c53b241
--- a/crates/ui-egui/src/widgets.rs
+++ b/crates/ui-egui/src/widgets.rs
@@@ -2078,83 -1984,34 +2084,109 @@@ mod tests
out.textures_delta.clear();
}
}
+
+ /// One primary press+release at `pos`. When `touch`, emit Touch Start/End with the pointer events (as egui-winit does) so [`super::second_click`] uses the touch distance.
+ fn pointer_click(ctx: &egui::Context, time: f64, pos: egui::Pos2, touch: bool) -> bool {
+ let area = egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(200.0, 200.0));
+ let button = |pressed| egui::Event::PointerButton { pos, button: egui::PointerButton::Primary, pressed, modifiers: egui::Modifiers::NONE };
+ let touch_ev = |phase| egui::Event::Touch { device_id: egui::TouchDeviceId(1), id: egui::TouchId(1), phase, pos, force: None };
+ let mut saw = false;
+ for (t, mut events) in [
+ (time, {
+ let mut v = vec![egui::Event::PointerMoved(pos), button(true)];
+ if touch {
+ v.insert(0, touch_ev(egui::TouchPhase::Start));
+ }
+ v
+ }),
+ (time + 0.02, {
+ let mut v = vec![button(false)];
+ if touch {
+ v.insert(0, touch_ev(egui::TouchPhase::End));
+ }
+ v
+ }),
+ ] {
+ let mut raw = egui::RawInput { time: Some(t), screen_rect: Some(area), ..Default::default() };
+ raw.events.append(&mut events);
+ let mut out = ctx.run_ui(raw, |ui| {
+ let r = ui.allocate_rect(area, egui::Sense::click());
+ saw |= super::second_click(ui, &r);
+ });
+ out.textures_delta.clear();
+ }
+ saw
+ }
+
+ /// #2274 touch: taps past egui's 6 px mouse limit (and past the old 32 px touch slop) within 0.5 s still count as a double; the same mouse path does not.
+ #[test]
+ fn second_click_tolerates_touch_jitter_but_keeps_mouse_tight() {
+ let area = egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(200.0, 200.0));
+ let a = egui::pos2(50.0, 50.0);
+ let mild = egui::pos2(70.0, 50.0); // 20 px — past mouse max_click_dist (6)
+ let wide = egui::pos2(50.0 + 48.0, 50.0); // past the old 32 px slop, inside TOUCH_MAX_CLICK_DIST (64)
+ for touch in [false, true] {
+ let ctx = egui::Context::default();
+ let mut out = ctx.run_ui(egui::RawInput { time: Some(0.0), screen_rect: Some(area), ..Default::default() }, |ui| {
+ ui.allocate_rect(area, egui::Sense::click());
+ });
+ out.textures_delta.clear();
+ assert!(!pointer_click(&ctx, 0.1, a, touch), "first click only arms the pair");
+ let second = pointer_click(&ctx, 0.25, mild, touch);
+ assert_eq!(second, touch, "touch={touch}: 20 px jitter is a double only for touch");
+ }
+ // Touch-only: casual Framework-style drift beyond the previous 32 px budget.
+ let ctx = egui::Context::default();
+ let mut out = ctx.run_ui(egui::RawInput { time: Some(0.0), screen_rect: Some(area), ..Default::default() }, |ui| {
+ ui.allocate_rect(area, egui::Sense::click());
+ });
+ out.textures_delta.clear();
+ assert!(!pointer_click(&ctx, 0.1, a, true));
+ assert!(pointer_click(&ctx, 0.25, wide, true), "48 px touch jitter is still a double");
+ }
+
+ /// A mouse double past the time window is not a double, even at the same pixel.
+ #[test]
+ fn second_click_respects_the_half_second_window() {
+ let area = egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(200.0, 200.0));
+ let p = egui::pos2(40.0, 40.0);
+ let ctx = egui::Context::default();
+ let mut out = ctx.run_ui(egui::RawInput { time: Some(0.0), screen_rect: Some(area), ..Default::default() }, |ui| {
+ ui.allocate_rect(area, egui::Sense::click());
+ });
+ out.textures_delta.clear();
+ assert!(!pointer_click(&ctx, 0.1, p, false));
+ assert!(!pointer_click(&ctx, 0.1 + super::DOUBLE_CLICK_S + 0.05, p, false), "past Windows' 0.5 s window");
+ }
+
use egui_kittest::{Harness, kittest::Queryable};
+ /// A panel footer's buttons are drawn whole. The bar runs on over the body's bottom margin, so a
+ /// body that clips where its content ends (as the panels do) cut the bottom off every button:
+ /// the hover highlight of a 26 px button was about 21 px tall in the Paths, Layers and Channels
+ /// panels (#6238).
+ #[test]
+ fn panel_footer_buttons_are_not_clipped_by_the_body() {
+ let mut h = Harness::new_ui_state(
+ |ui, s: &mut Option<(egui::Rect, egui::Rect, egui::Rect)>| {
+ // A body exactly as tall as the footer takes, clipped there.
+ let body = egui::Rect::from_min_size(ui.max_rect().min, egui::vec2(220.0, super::footer_height(ui)));
+ let mut body_ui = ui.new_child(egui::UiBuilder::new().max_rect(body));
+ body_ui.set_clip_rect(body);
+ super::panel_footer(&mut body_ui, |bar| {
+ let b = crate::icons::button(bar, "square", 26.0, false, "Button");
+ *s = Some((b.rect, bar.clip_rect(), body));
+ });
+ },
+ None,
+ );
+ crate::PhotocraftApp::setup_context(&h.ctx, crate::theme::ThemeKind::Studio);
+ h.run();
+ let (button, clip, body) = h.state().expect("the footer drew its button");
+ assert!(button.bottom() > body.bottom(), "the bar really overruns the body, or this test proves nothing: {button:?} vs {body:?}");
+ assert!(clip.contains_rect(button), "the whole button is inside the clip: {button:?} not in {clip:?}");
+ }
+
/// #3789: a plain text field is one boxed, outline-free input whose text-selection colour stays
/// local, so it isn't recoloured for the rest of the frame (selected rows, slider trails).
#[test]
diff --cc docs/ui-parity.md
index 3f074925f,8930a3397..1919a8af3
--- a/docs/ui-parity.md
+++ b/docs/ui-parity.md
@@@ -1,6 -1,6 +1,6 @@@
# UI parity: tools, handles, modifiers and feel
- > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-21 · **Change:** minor (Hand tool ⌘ / ⌥ are Zoom In / Zoom Out while held, #6434; the wheel steps value fields, #5473; a dragged guide shows its X or Y beside the pointer, #7680; Type options bar "T" icon scrubs the font size, #6437; Move tool: dragged selected pixels take their own outline as the selection, #7538; artboard backgrounds remain below child Free Transform previews; ⌫/Delete removes the selected smart filter, #4751; Object Finder foreground/background discrimination (#6548); rounded triangle, polygon and star corners; shape Fill/Stroke popovers accept hex RGB values, #6176; Animated Zoom: holding the Zoom tool zooms continuously, #6210; shape Density and Feather, TOOL-214-12, #5846; Pen Auto Add/Delete on the path being drawn, #6140; Show Transform Controls frames every selected layer; guide keys and clicks; menu bar from the keyboard, #4988; Crop tool Content-Aware Fill; on-canvas corner radius widgets, TOOL-214-12; Curvature Pen edits the active path; Clip Thumbnails to Layer Bounds; Pen ⇧ 45°; last selected tool restored at launch; Layers panel filter-type dropdown with Kind, Name and Mode, #5048; Free Transform box and marching ants follow the selection, #5297; History: the trash deletes the selected snapshot, rows drag onto the trash, #5324; smart filter reordering by drag; smart object perspective row corrected to done, #426; Free Transform H/V skew fields; toolbar tool shortcuts can be reassigned; ⇧-dragged guides land on ruler ticks; layer and selection keys; tool keys; spring-loaded tool letters; type formatting keys; Pen Auto Add/Delete, #4144; smart filter rows; stale missing-tool rows corrected: Color Replacement, Red Eye and the Add/Delete Anchor Point pair are live toolbar tools, Frame landed; no percentage changed; selection-modifier and ⌥-wheel rows match their tests) · **Target:** Adobe Photoshop 2026
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-21 · **Change:** minor (Animated Zoom: holding the Zoom tool zooms continuously, #6210; shape Density and Feather, TOOL-214-12, #5846; Pen Auto Add/Delete on the path being drawn, #6140; Show Transform Controls frames every selected layer; guide keys and clicks; menu bar from the keyboard, #4988; Crop tool Content-Aware Fill; on-canvas corner radius widgets, TOOL-214-12; Curvature Pen edits the active path; Clip Thumbnails to Layer Bounds; Pen ⇧ 45°; last selected tool restored at launch; Layers panel filter-type dropdown with Kind, Name and Mode, #5048; Free Transform box and marching ants follow the selection, #5297; History: the trash deletes the selected snapshot, rows drag onto the trash, #5324; smart filter reordering by drag; smart object perspective row corrected to done, #426; Free Transform H/V skew fields; toolbar tool shortcuts can be reassigned; ⇧-dragged guides land on ruler ticks; a guide let go over either ruler is removed, #6286; layer and selection keys; tool keys; spring-loaded tool letters; type formatting keys; Pen Auto Add/Delete, #4144; smart filter rows; stale missing-tool rows corrected: Color Replacement, Red Eye and the Add/Delete Anchor Point pair are live toolbar tools, Frame landed; no percentage changed; selection-modifier and ⌥-wheel rows match their tests) · **Target:** Adobe Photoshop 2026
++> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-21 · **Change:** minor (Hand tool ⌘ / ⌥ are Zoom In / Zoom Out while held, #6434; the wheel steps value fields, #5473; a dragged guide shows its X or Y beside the pointer, #7680; Type options bar "T" icon scrubs the font size, #6437; Move tool: dragged selected pixels take their own outline as the selection, #7538; artboard backgrounds remain below child Free Transform previews; ⌫/Delete removes the selected smart filter, #4751; Object Finder foreground/background discrimination (#6548); rounded triangle, polygon and star corners; shape Fill/Stroke popovers accept hex RGB values, #6176; a guide let go over either ruler is removed, #6286; Animated Zoom: holding the Zoom tool zooms continuously, #6210; shape Density and Feather, TOOL-214-12, #5846; Pen Auto Add/Delete on the path being drawn, #6140; Show Transform Controls frames every selected layer; guide keys and clicks; menu bar from the keyboard, #4988; Crop tool Content-Aware Fill; on-canvas corner radius widgets, TOOL-214-12; Curvature Pen edits the active path; Clip Thumbnails to Layer Bounds; Pen ⇧ 45°; last selected tool restored at launch; Layers panel filter-type dropdown with Kind, Name and Mode, #5048; Free Transform box and marching ants follow the selection, #5297; History: the trash deletes the selected snapshot, rows drag onto the trash, #5324; smart filter reordering by drag; smart object perspective row corrected to done, #426; Free Transform H/V skew fields; toolbar tool shortcuts can be reassigned; ⇧-dragged guides land on ruler ticks; layer and selection keys; tool keys; spring-loaded tool letters; type formatting keys; Pen Auto Add/Delete, #4144; smart filter rows; stale missing-tool rows corrected: Color Replacement, Red Eye and the Add/Delete Anchor Point pair are live toolbar tools, Frame landed; no percentage changed; selection-modifier and ⌥-wheel rows match their tests) · **Target:** Adobe Photoshop 2026
How PhotoCraft's direct manipulation compares with Photoshop 2026 (27.11.0): the toolbox, the
handles and modifier keys of each gesture, nudging, snapping, numeric precision, navigation,
@@@ -238,16 -228,10 +238,17 @@@ Paragraph; the rest open as in-app floa
| Date | Change | Summary |
|---|---|---|
+| 2026-10-19 | minor | A guide being moved or dragged out of a ruler shows an `X:` / `Y:` position readout beside the pointer, from the zero point in the ruler unit (#7680) |
+| 2026-10-17 | minor | The wheel steps value fields: a focused field takes it wherever the pointer is (the canvas and panels don't scroll), an unfocused one only a gesture that starts over it (#5473, #4061); no percentage changed |
+| 2026-10-17 | minor | Object Finder foreground/background discrimination (#6548) |
+| 2026-10-16 | minor | Hand tool ⌘ / ⌥ held are temporary Zoom In / Zoom Out (#6434); Scroll All Windows and Bird's Eye View rows added as missing |
+| 2026-10-16 | minor | Type options bar: dragging the "T" icon scrubs the font size, as the Character panel's icons do (#6437) |
+| 2026-10-16 | minor | Shape Fill/Stroke compact pickers accept six-digit hex RGB, including pasted values with `#`, retaining alpha and high-depth paint until an edit; typed/pasted colour and history regressions (#6176). Scores unchanged. |
| 2026-10-15 | minor | Shape Density and Feather row added as done (TOOL-214-12, #5846) |
+ | 2026-10-15 | minor | A guide let go over either ruler is removed, not only off the canvas: the top ruler measures document x and the left one y, so the ruler a guide was not dragged out of can lie over a coordinate inside the document (#6286) |
| 2026-10-13 | minor | Menu bar from the keyboard: Alt / F10 focus, Alt+letter, underlined mnemonics (#4988) |
| 2026-10-13 | minor | Layers panel filter row: Kind is a real dropdown with Kind, Name and Mode filters, drivable by `ui.set {layerFilter}` (#5048); row added as partial |
+| 2026-10-14 | minor | Character and Paragraph panels edit persistent defaults without a type target (#5556); no percentage or estimate changed |
| 2026-10-13 | minor | Stale "missing tool" rows corrected against main: Color Replacement (`paint.colorReplacement`), Red Eye (`paint.redEye`) and Add/Delete Anchor Point (the P flyout cycle) are live toolbar tools, so only Art History Brush is missing; no percentage or estimate changed |
| 2026-10-13 | minor | Smart object perspective (non-affine) corrected to done: #426 landed four-corner placements with PSD round trip; scorecard FILE-215-6 flipped |
| 2026-10-10 | major | First version, from a source audit against Photoshop 2026 27.11.0's shortcuts file and the open issues |