Skip to content

Add passive arrow mode#79

Merged
aurorascharff merged 1 commit into
mainfrom
codex/draw-arrow-mode
Jun 27, 2026
Merged

Add passive arrow mode#79
aurorascharff merged 1 commit into
mainfrom
codex/draw-arrow-mode

Conversation

@aurorascharff

Copy link
Copy Markdown
Owner

Summary

  • Add an Arrow Mode that turns a drag gesture into a persistent on-screen arrow annotation.
  • Add a Clear Arrows action with a default Control + Option + Command + C shortcut.
  • Wire Arrow Mode through the menu bar menu, settings UI, profile storage, and global shortcut settings.

Notes

This intentionally uses the same passive observation model as Laser Pointer mode. The overlay stays click-through (ignoresMouseEvents = true) and does not suppress mouse events, so the app underneath still receives the drag. That means text can still highlight while drawing an arrow, but ClickLight should not trap clicks or block interaction.

Laser Pointer and Arrow Mode are mutually exclusive. Disabling ClickLight also turns off Arrow Mode and clears existing arrows.

Testing

  • swift build
  • ./build-app.sh
  • Installed locally from the built app and smoke-tested Arrow Mode, Clear Arrows, disabling ClickLight, and normal clicking after disabling.

Copilot AI review requested due to automatic review settings June 26, 2026 23:35
@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
click-light Ready Ready Preview, Comment Jun 27, 2026 12:10am

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a new passive Arrow Mode to the ClickLight overlay pipeline, allowing users to draw persistent on-screen arrow annotations during drag gestures, plus a Clear Arrows action (with a default global shortcut) wired through the app’s menu/UI/settings/profile/hotkey stack.

Changes:

  • Introduces showArrowMode setting and new shortcut actions (toggleArrowMode, clearArrows) with UserDefaults + profile persistence.
  • Wires Arrow Mode + Clear Arrows into the status menu, settings UI, and hotkey handling (including Laser Pointer mutual exclusion).
  • Extends overlay rendering to create, draw, and clear arrow annotations.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
Sources/ClickLight/StatusController.swift Adds Arrow Mode toggle and Clear Arrows menu item; enforces mutual exclusion with Laser Pointer and disables drag trail appropriately.
Sources/ClickLight/SettingsStore.swift Persists showArrowMode and new hotkey bindings via UserDefaults keys/defaults and ClickSettings.
Sources/ClickLight/OverlayCoordinator.swift Allows overlay updates while Arrow Mode is enabled and adds a clearArrows() broadcast to per-screen overlays.
Sources/ClickLight/HotKeyBinding.swift Adds new ClickShortcutAction cases, titles, event IDs, and default binding for Clear Arrows.
Sources/ClickLight/ClickProfileStore.swift Persists showArrowMode in profiles with backwards-compatible decoding.
Sources/ClickLight/ClickOverlayWindow.swift Forwards clearArrows() to the overlay view.
Sources/ClickLight/ClickOverlayView.swift Implements arrow annotation capture/drawing/clearing and integrates it into the render loop and drag suppression.
Sources/ClickLight/ClickLightSettingsView.swift Adds Arrow Mode toggle and updates “Show Drag” UI disabling/description when Arrow Mode is active.
Sources/ClickLight/AppDelegate.swift Wires Clear Arrows callback from status UI and adds hotkey handling for Arrow Mode + Clear Arrows.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Sources/ClickLight/ClickOverlayView.swift
Comment thread Sources/ClickLight/ClickOverlayView.swift
Comment thread Sources/ClickLight/ClickOverlayView.swift
@aurorascharff aurorascharff force-pushed the codex/draw-arrow-mode branch from ab68b84 to c3cf848 Compare June 27, 2026 00:09
@aurorascharff aurorascharff merged commit b77afb9 into main Jun 27, 2026
5 checks passed
@aurorascharff aurorascharff deleted the codex/draw-arrow-mode branch June 27, 2026 00:10
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