Skip to content

Let the menu bar icon be hidden - #43

Open
jorgenbruntveit wants to merge 1 commit into
nilbuild:mainfrom
jorgenbruntveit:menu-bar-toggle
Open

jorgenbruntveit wants to merge 1 commit into
nilbuild:mainfrom
jorgenbruntveit:menu-bar-toggle

Conversation

@jorgenbruntveit

Copy link
Copy Markdown

Adds a switch to hide the menu bar icon, for people who drive TinyHand from shortcuts or Raycast and don't want another icon up there.

What it does

  • Settings → General → Menu bar: Show TinyHand in the menu bar, on by default. Turning it off hides the icon straight away. Shortcuts and tinyhand:// links keep working.
  • Getting back to Settings: opening TinyHand again while it is running (Spotlight, Raycast, Finder or Launchpad) shows Settings, so the icon can always be turned back on.
  • tinyhand://settings opens Settings too, and is added to the automation table in the README.

How

  • New Preferences.showMenuBarIcon, cleared by Reset like the other settings.
  • AppDelegate sets statusItem.isVisible from it at launch and when preferences change.
  • applicationShouldHandleReopen opens Settings.
  • The status item's frame is only passed through to the overlay while the icon is visible.

Testing

Built locally and tested on macOS 27.3: the icon hides and comes back from the switch and after a relaunch, reopening the app shows Settings, and open -g tinyhand://settings shows Settings.

One thing to note: with the icon hidden there is no orange icon to show that click-through is on.

General settings get a Menu bar switch. When the icon is hidden,
opening TinyHand again from Spotlight, Raycast or Finder shows
Settings, and tinyhand://settings does the same.
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.

1 participant