mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
* Layers: clip groups follow New Layer, Arrange, Reorder and Delete (#2203) Adding, moving or deleting layers never touched Layer::clipped, so a new layer above a clipping base split its group and became the base of the layers clipped above it, and moving or deleting a base left its clipped layers clipping to whatever ended up below them. The new clip_group module applies Photoshop's rules, measured on #2203: a layer added or moved joins the clip group it lands in; a clipped layer moved stays clipped while it still sits on a clip group; the layers clipped to a base that moves away or is deleted are released; and a clipped run left with nothing below it is released. They are applied by layer.new.layer (new clipToPrevious param, Photoshop's Use Previous Layer to Create Clipping Mask), layer.arrange.*, layer.moveTo (Layers panel drags, batches and ⌥-drag copies) and layer.delete. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Layers: the New Layer dialog (Layer › New › Layer…, ⇧⌘N) Layer › New › Layer… made a layer straight away. It now opens Photoshop's New Layer dialog: Name (focused and selected), Use Previous Layer to Create Clipping Mask, Color, Mode, Opacity, and Fill with <mode>-neutral color, greyed out with "(No neutral color exists for <mode> mode.)" for modes that have none. OK makes the layer in one history step. layer.new.layer gains mode, opacity, color and fillNeutral params (new engine module new_layer.rs) beside clipToPrevious. The neutral colors (white for the darkening modes and Divide, black for the lightening and difference modes, 50% gray for the light modes) are checked by compositing at 8, 16 and 32 bits. As in Photoshop, the Layers panel's New Layer button still makes a layer at once and ⌥-click opens the dialog; commands with params (automation, Actions, MCP) never show it. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Brandon Thomas <[email protected]>