Skip to content

Add editable pointer annotations to screenshots - #698

Open
jamesmontemagno wants to merge 11 commits into
mainfrom
motz-screenshot-cursor-hotkey
Open

jamesmontemagno wants to merge 11 commits into
mainfrom
motz-screenshot-cursor-hotkey

Conversation

@jamesmontemagno

Copy link
Copy Markdown
Owner

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 0198cb35ece444b93319c2e7a1cd22813e9df390

Dimension Assessment Rationale
Change confidence 8/10 ↑ macOS tests and both Debug builds passed; Windows Build passed at the assessed revision.
↓ Latest editor UI changes have not been manually verified on both platforms.

Pointer annotations help people highlight where to click in screenshots used for documentation. This adds editable Arrow, Hand, and I-beam pointers to the macOS and Windows screenshot editors, with color, stroke, opacity, and shadow controls.

  • Supports pointer annotations through Agent Control and shared geometry fixtures.
  • Simplifies pointer controls and stacks macOS annotation sliders beneath their labels without tick marks.
  • Keeps screenshot capture and existing hotkeys unchanged. This is an editable alternative, not a hotkey that captures the actual mouse cursor; the original request remains open.

Validation

  • macOS tests and Debug builds for TinyClips and TinyClipsMAS passed.
  • Windows Build passed for the final revision.

Relates to #692

jamesmontemagno and others added 10 commits November 26, 2026 21:31
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Lay out the pointer Nudge and resize buttons in an equal-width grid so
  Make pointer larger is no longer clipped in the 277px inspector.
- Label the pointer style picker Style, matching Redact, instead of
  repeating the Pointer inspector title.
- Restore the assertion that invalid default-tool values leave the
  setting unchanged, and revert an unrelated SettingIds reformat.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jamesmontemagno
jamesmontemagno marked this pull request as ready for review November 27, 2026 16:29
Copilot AI balanced review requested due to automatic review settings November 27, 2026 16:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Active issues cause Windows preview shadows to differ from exported images and allow macOS pointer resizing to exceed the Size inspector’s limits.

2 open issues
What changed in this PR

Adds editable Arrow, Hand, and I-beam annotations to TinyClips’ macOS and Windows screenshot editors. This offers an alternative for documentation screenshots; capturing the actual cursor via a hotkey remains outside this PR, so #692 stays open.

Changes:

  • Adds pointer placement, styling, resizing, rotation, undo support, and rendering.
  • Extends Agent Control with pointer annotations and shared geometry fixtures.
  • Updates editor controls, regression coverage, documentation, and changelogs.
File Description
windows/​tests/​TinyClips.Core.Tests/​ScreenshotFixtureTests.cs Tests pointer geometry and hotspot-preserving resizing.
windows/​tests/​TinyClips.Core.Tests/​ScreenshotExportTests.cs Tests pointer appearance snapshots.
windows/​tests/​TinyClips.Core.Tests/​AutomationSettingsCatalogTests.cs Tests the pointer default-tool setting.
windows/​tests/​TinyClips.Core.Tests/​AutomationCaptureTargetingTests.cs Tests pointer parsing and validation.
windows/​tests/​TinyClips.App.Tests/​SettingsViewModelTests.cs Updates expected default-tool choices.
windows/​tests/​TinyClips.App.Tests/​ScreenshotEditorTextMarkupTests.cs Checks pointer inspector controls and labels.
windows/​src/​TinyClips.Core/​Editing/​ScreenshotRenderState.cs Adds pointer tool and snapshot state.
windows/​src/​TinyClips.Core/​Editing/​PointerGeometry.cs Defines pointer appearance, outlines, and sizing.
windows/​src/​TinyClips.Core/​Editing/​EmojiAnnotationMath.cs Exposes reusable maximum-size calculation.
windows/​src/​TinyClips.Core/​Automation/​AutomationAnnotationParser.cs Parses and validates pointer annotations.
windows/​src/​TinyClips.App/​Views/​ScreenshotEditorWindow.xaml.cs Adds the P tool shortcut.
windows/​src/​TinyClips.App/​ViewModels/​SettingsViewModel.cs Adds pointer to default-tool choices.
windows/​src/​TinyClips.App/​Controls/​Settings/​ScreenshotSettingsSection.xaml Displays the pointer default-tool option.
windows/​src/​TinyClips.App/​Controls/​ScreenshotEditor/​EditorToolbar.xaml.cs Connects pointer toolbar selection.
windows/​src/​TinyClips.App/​Controls/​ScreenshotEditor/​EditorToolbar.xaml Adds pointer button and updates Select icon.
windows/​src/​TinyClips.App/​Controls/​ScreenshotEditor/​EditorInspector.xaml.cs Connects pointer controls and state synchronization.
windows/​src/​TinyClips.App/​Controls/​ScreenshotEditor/​EditorInspector.xaml Adds pointer styling and placement controls.
windows/​src/​TinyClips.App/​Controls/​ScreenshotEditor/​EditorController.cs Implements pointer editing, undo, and export.
windows/​src/​TinyClips.App/​Controls/​ScreenshotEditor/​EditorCanvas.xaml.cs Adds pointer previews and canvas interaction.
windows/​CHANGELOG.md Documents Windows pointer editing.
skills/​tinyclips-capture/​SKILL.md Adds Agent pointer-annotation guidance.
shared/​screenshot/​tools/​generate_fixtures.py Generates shared pointer fixtures.
shared/​screenshot/​README.md Documents pointer fixture coordinates.
shared/​screenshot/​fixtures/​pointer/​pointer.json Supplies shared silhouettes and hotspots.
shared/​automation/​commands.json Extends the annotation command schema.
mac/​TinyClipsTests/​ScreenshotFixtureTests.swift Tests shared pointer geometry.
mac/​TinyClipsTests/​ScreenshotEditorViewModelTests.swift Tests placement, resizing, undo, and rendering.
mac/​TinyClipsTests/​CaptureSettingsTests.swift Tests pointer default-tool persistence.
mac/​TinyClipsTests/​AutomationCaptureTargetsTests.swift Tests pointer parsing and validation.
mac/​TinyClips/​Views/​ScreenshotEditorWindow.swift Adds pointer controls and reorganizes sliders.
mac/​TinyClips/​Views/​ScreenshotEditorViewModel.swift Implements pointer editing and export.
mac/​TinyClips/​Views/​ScreenshotEditorModels.swift Defines pointer models and geometry.
mac/​TinyClips/​Views/​ScreenshotEditorCanvas.swift Adds pointer placement and preview rendering.
mac/​TinyClips/​Automation/​AutomationAnnotations.swift Parses Agent pointer annotations.
docs/​agent-integration.md Documents pointer parameters and settings.
CHANGELOG.md Records macOS pointer and slider changes.
agent/​CHANGELOG.md Records Agent pointer support.

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

2 participants