Skip to content

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

Merge remote-tracking branch 'upstream/main' into codex/fill-mask-preview-20261012

abc2cb4c0335612e77
diff --cc crates/engine/src/commands.rs
index b3b8e823c,cd7f5d606..194c8bd72
--- a/crates/engine/src/commands.rs
+++ b/crates/engine/src/commands.rs
@@@ -1005,8 -1032,7 +1043,8 @@@ fn build() -> Vec<CommandSpec>
r##"{"color":"#rrggbb"=foreground,"path":"work"|saved path name|{…path}? (the active path: becomes the vector mask, making a shape; else the selection is the layer mask)}"##,
has_doc,
|s, p| {
- let c = color_param(p, "color", s.tools.foreground);
+ let c = color_param("layer.newFillLayer.solidColor", p, "color", s.tools.foreground)?;
+ let default_mask = layer_panel_option(s, "useDefaultMasksOnFillLayers", true);
let id = s.edit("New Color Fill Layer", |doc, active| {
let fill = Fill::Solid(Color::rgba(c[0], c[1], c[2], c[3])).in_mode(doc.mode);
let mut l = Layer::new(doc.next_layer_name("Color Fill"), LayerContent::Fill(fill));