Skip to content

fix: use the All-in-One toolbar style in the annotation editor - #415

Merged
lzhgus merged 1 commit into
mainfrom
fix/unified-annotation-toolbar
Nov 25, 2026
Merged

lzhgus merged 1 commit into
mainfrom
fix/unified-annotation-toolbar

Conversation

@lzhgus

@lzhgus lzhgus commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Problem

Fixes #414. Annotating inside an All-in-One capture shows a dark floating toolbar, while the annotation editor opened after an area, fullscreen or window capture had a separately implemented toolbar with different buttons, pickers and text options.

Change

  • New AnnotationToolbarChrome.swift holds the toolbar building blocks: tool button with hover label, icon button, segmented option control, text effect buttons, divider, surface, and the size slider range/step/tooltip rules.
  • The All-in-One annotation toolbar now uses those components. Its layout and behavior are unchanged.
  • The editor's AnnotationToolbar is rebuilt on the same components. It keeps its editor-only controls (arrow head style, style presets, crop, Beautify, drag, close/copy/pin/save) and the pinned-actions layout.
  • Text effects (Fill / Box / Trace) sit inline in the editor toolbar instead of a second row, so the toolbar height no longer changes when the Text tool is selected.
  • The Beautify panel uses the dark appearance so it matches the toolbar and canvas.
  • Removed five localized tooltip strings that are no longer referenced.

Testing

  • xcodebuild test: 248 passed, 0 failed, 1 skipped (testPolicyFollowsEditorLifecycle skips when run from another app's full-screen Space).
  • Debug app, light mode:
    • Editor opened from an image file and from a real capture-area-and-annotate flow: checked the select, arrow, line, rectangle, text and pixelate toolbar states, hover labels, drawing an arrow, undo, the style presets menu, the Beautify panel, crop mode and Pin.
    • All-in-One capture: toolbar compared against a build of main for the arrow and pixelate tools (same frame and layout), plus tool switching, hover labels, drawing and the inline text effects.

Note

InlineAnnotationToolbar in InlineAnnotationEditorWindow.swift is left untouched: nothing in the UI opens that editor today.

🤖 Generated with Claude Code

The annotation editor opened after an area, fullscreen or window capture
had its own toolbar, with different buttons, pickers and text options
than the one shown while annotating an All-in-One capture.

Both toolbars now build on the same components, so the editor gets the
same dark floating bar, hover labels, option controls and inline text
effects. The Beautify panel follows the dark style so it does not sit
between the toolbar and the canvas as a light strip.

Fixes #414

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@lzhgus
lzhgus merged commit 7f28773 into main Nov 25, 2026
5 checks passed
@lzhgus
lzhgus deleted the fix/unified-annotation-toolbar branch November 25, 2026 00:55
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.

[Bug] 全能截图与截取区域、截取全屏的标注工具栏不一致

1 participant