Skip to content

Highlight status button when popover is shown#100

Merged
cyanzhong merged 1 commit intomainfrom
develop
Jan 31, 2026
Merged

Highlight status button when popover is shown#100
cyanzhong merged 1 commit intomainfrom
develop

Conversation

@cyanzhong
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds functionality to highlight the status bar button when translation or lookup popovers are displayed, providing visual feedback that matches the existing menu highlight behavior.

Changes:

  • Introduced App+Popover.swift with NSPopoverDelegate implementation to intercept popover lifecycle events
  • Modified Translator.swift to set App as delegate for translation popovers
  • Modified LookUp.swift to set App as delegate for lookup popovers

Reviewed changes

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

File Description
TextGrabber2/Sources/App/App+Popover.swift New file implementing NSPopoverDelegate to highlight/unhighlight status button during popover lifecycle
TextGrabber2/Sources/Translator.swift Added delegate override call before showing translation popover
TextGrabber2/Sources/LookUp.swift Extracted popover reference and added delegate override call before showing lookup popover

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

@cyanzhong cyanzhong merged commit 540b176 into main Jan 31, 2026
1 check passed
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