diff --git a/README.md b/README.md index 04508f9637..2e9ed0502a 100644 --- a/README.md +++ b/README.md @@ -185,8 +185,8 @@ Every screenshot here is the real app at work on public-domain art, rendered off
-

🧰 69 tools

- Move · Artboard · Rectangular and Elliptical Marquee · Single Row Marquee · Single Column Marquee · Lasso · Polygonal Lasso · Magnetic Lasso · Object Selection · Quick Selection · Magic Wand · Crop · Perspective Crop · Slice · Slice Select · Frame · Eyedropper · Color Sampler · Ruler · Note · Count · Remove · Spot Healing Brush · Healing Brush · Patch · Content-Aware Move · Red Eye · Brush · Pencil · Mixer Brush · Color Replacement · Clone Stamp · Pattern Stamp · History Brush · Art History Brush · Eraser · Background Eraser · Magic Eraser · Gradient · Paint Bucket · Blur · Sharpen · Smudge · Dodge · Burn · Sponge · Pen · Freeform Pen · Curvature Pen · Add Anchor Point · Delete Anchor Point · Convert Point · Horizontal and Vertical Type · Horizontal and Vertical Type Mask · Path Selection · Direct Selection · Rectangle · Ellipse · Triangle · Polygon · Star · Line · Custom Shape · Hand · Rotate View · Zoom +

🧰 70 tools

+ Move · Artboard · Rectangular and Elliptical Marquee · Single Row Marquee · Single Column Marquee · Lasso · Polygonal Lasso · Magnetic Lasso · Object Selection · Quick Selection · Magic Wand · Crop · Perspective Crop · Slice · Slice Select · Frame · Eyedropper · Color Sampler · Ruler · Note · Count · Remove · Spot Healing Brush · Healing Brush · Patch · Content-Aware Move · Red Eye · Brush · Pencil · Mixer Brush · Color Replacement · Clone Stamp · Pattern Stamp · History Brush · Art History Brush · Eraser · Background Eraser · Magic Eraser · Gradient · Paint Bucket · Blur · Sharpen · Smudge · Adjustment Brush · Dodge · Burn · Sponge · Pen · Freeform Pen · Curvature Pen · Add Anchor Point · Delete Anchor Point · Convert Point · Horizontal and Vertical Type · Horizontal and Vertical Type Mask · Path Selection · Direct Selection · Rectangle · Ellipse · Triangle · Polygon · Star · Line · Custom Shape · Hand · Rotate View · Zoom

🖌️ A real brush engine

diff --git a/crates/engine/src/prefs.rs b/crates/engine/src/prefs.rs index d9b6fb7144..2f079c87ef 100644 --- a/crates/engine/src/prefs.rs +++ b/crates/engine/src/prefs.rs @@ -1361,6 +1361,7 @@ pub const DEFAULT_TOOLBAR: &[&[&str]] = &[ &["Eraser", "BackgroundEraser", "MagicEraser"], &["Gradient", "PaintBucket"], &["Blur", "Sharpen", "Smudge"], + &["AdjustmentBrush"], &["Dodge", "Burn", "Sponge"], &["Pen", "FreeformPen", "CurvaturePen", "AddAnchorPoint", "DeleteAnchorPoint", "ConvertPoint"], &["Type", "VerticalType", "VerticalTypeMask", "HorizontalTypeMask"], diff --git a/crates/engine/src/shell_commands.rs b/crates/engine/src/shell_commands.rs index cec9e757be..05b2b7f940 100644 --- a/crates/engine/src/shell_commands.rs +++ b/crates/engine/src/shell_commands.rs @@ -154,6 +154,7 @@ pub const TOOLS: &[(&str, &str, Option<&str>)] = &[ ("tools.select.blur", "Blur Tool", None), ("tools.select.sharpen", "Sharpen Tool", None), ("tools.select.smudge", "Smudge Tool", None), + ("tools.select.adjustmentBrush", "Adjustment Brush Tool", None), ("tools.select.dodge", "Dodge Tool", Some("O")), ("tools.select.burn", "Burn Tool", Some("O")), ("tools.select.sponge", "Sponge Tool", Some("O")), diff --git a/crates/ui-egui/src/state.rs b/crates/ui-egui/src/state.rs index 138d995469..91211c5545 100644 --- a/crates/ui-egui/src/state.rs +++ b/crates/ui-egui/src/state.rs @@ -865,7 +865,7 @@ mod tests { assert!(!Tool::RedEye.is_brushlike()); assert_eq!(Tool::from_name("patternStamp"), Some(Tool::PatternStamp)); assert_eq!(Tool::from_name("Pattern Stamp Tool"), Some(Tool::PatternStamp)); - assert_eq!(Tool::ALL.len(), 69); + assert_eq!(Tool::ALL.len(), 70); } fn vector_tool_names_parse() { diff --git a/crates/ui-egui/src/transform_switch_tests.rs b/crates/ui-egui/src/transform_switch_tests.rs index f5be113d2a..857669010e 100644 --- a/crates/ui-egui/src/transform_switch_tests.rs +++ b/crates/ui-egui/src/transform_switch_tests.rs @@ -8,9 +8,9 @@ use serde_json::json; use crate::PhotocraftApp; /// The app with a 400 × 300 document: a red 100 × 60 rectangle at (100, 100) on its own layer -/// above the Background. +/// above the Background. Tall enough that the whole tool column, Hand Tool included, is on screen. fn app() -> Harness<'static, PhotocraftApp> { - let mut h = Harness::builder().with_size(egui::vec2(1400.0, 900.0)).with_max_steps(64).build_eframe(|cc| { + let mut h = Harness::builder().with_size(egui::vec2(1400.0, 1000.0)).with_max_steps(64).build_eframe(|cc| { PhotocraftApp::setup_context(&cc.egui_ctx, Default::default()); let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); app.run("file.new", json!({"width": 400, "height": 300, "background": "white"})).unwrap(); @@ -58,7 +58,7 @@ fn picking_another_tool_in_the_toolbar_applies_the_transform() { /// the same step), as Place Embedded leaves it for the box `begin_placed` opens: cancelling the /// place takes that step back. fn placed_app() -> Harness<'static, PhotocraftApp> { - let mut h = Harness::builder().with_size(egui::vec2(1400.0, 900.0)).with_max_steps(64).build_eframe(|cc| { + let mut h = Harness::builder().with_size(egui::vec2(1400.0, 1000.0)).with_max_steps(64).build_eframe(|cc| { PhotocraftApp::setup_context(&cc.egui_ctx, Default::default()); let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); app.run("file.new", json!({"width": 400, "height": 300, "background": "white"})).unwrap();