Skip to content

Make the Text tool control bar font family, style, and size sync with the selected layer#4118

Merged
Keavon merged 3 commits intomasterfrom
interactive-text-controls
May 7, 2026
Merged

Make the Text tool control bar font family, style, and size sync with the selected layer#4118
Keavon merged 3 commits intomasterfrom
interactive-text-controls

Conversation

@Keavon
Copy link
Copy Markdown
Member

@Keavon Keavon commented May 7, 2026

Closes #3563, closes #4052.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the text tool to synchronize the toolbar with selected text layers, specifically for font, font size, and alignment. It introduces CSS-based alignment for the text overlay and removes the line height ratio control. Feedback highlights a potential regression due to the removal of the line height setting, missing bookkeeping for font style restoration when switching families or styles, and a suggestion to use SetInputValue for font size updates to maintain consistency with other property changes.

Comment thread editor/src/messages/tool/tool_messages/text_tool.rs
Comment thread editor/src/messages/tool/tool_messages/text_tool.rs
Comment thread editor/src/messages/tool/tool_messages/text_tool.rs
Comment thread editor/src/messages/tool/tool_messages/text_tool.rs Outdated
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@Keavon Keavon merged commit 24c857d into master May 7, 2026
11 checks passed
@Keavon Keavon deleted the interactive-text-controls branch May 7, 2026 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changing the font in a text object doesn't work Top properties menu not working on Text / curve tools

1 participant