mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-03 06:40:20 -06:00
* Type layers keep their name in step with their text (#483) A type layer is named after its first line when it's created, but only the Type tool's first editing session renamed it again. Editing the text later (clicking back into the layer, type.edit, Paste Lorem Ipsum into it) left the old name, so a layer re-typed from the placeholder kept saying "Lorem Ipsum". Like Photoshop, a type layer whose name is still the one its text gives it now follows every text edit, in the same history step. A layer named anything else (given a name at creation or renamed later) keeps it. Paste Lorem Ipsum no longer gives its new layer a fixed "Lorem ipsum" name, so that layer follows its text too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Type layer names: the first non-empty line, the same in the Type tool and the engine Review on #501: the Type tool named a new layer after its first non-empty line, the engine after its first line, so text starting with a blank line stopped the name following the text. layer_name now takes the first non-empty line and commit() uses it. Also drop a product name from a doc comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>