Add editable templates, layer controls, and image aspect-ratio locking - #372
Open
1eevy wants to merge 7 commits into
Open
Add editable templates, layer controls, and image aspect-ratio locking#3721eevy wants to merge 7 commits into
1eevy wants to merge 7 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was developed with substantial assistance from a large language model as an AI-assisted coding effort. The generated changes were reviewed, built, and validated against the project’s existing checks. It improves slide authoring with editable template pages, safer object layering, per-image aspect-ratio controls, properties-panel scroll preservation, and localization for the new interface elements.
The existing doc.layouts system is extended into a template-page workflow with create, edit, duplicate, delete, save, and cancel actions. Template text boxes remain editable and movable on normal slides, while non-text template elements are rendered as protected background furniture that cannot be selected or reordered. The template manager can be closed with its close button, an outside click, or Escape.
The existing Arrange section continues to provide Bring to front, Bring forward, Send backward, and Send to back controls using the project’s native UI. These operations support normal single-selection and multi-selection workflows while explicitly excluding protected template elements.
Images now have a per-object Keep aspect ratio setting that is enabled by default. When disabled, the image itself can be resized independently in width and height. Re-enabling the setting preserves the image’s current shape and locks its current ratio for subsequent resizing, without restoring any original or historical ratio.