Skip to content

Menu-bar status item (accessory activation policy)#6

Open
imaznation wants to merge 1 commit into
kemalandic:mainfrom
imaznation:proposal/menu-bar-status-item
Open

Menu-bar status item (accessory activation policy)#6
imaznation wants to merge 1 commit into
kemalandic:mainfrom
imaznation:proposal/menu-bar-status-item

Conversation

@imaznation
Copy link
Copy Markdown

Summary

Kiosk-mode users typically don't want EdgeControl in the Dock or Cmd-Tab — the dashboard window lives on a secondary display and the app is otherwise headless from the main Mac's perspective. Without a menu-bar affordance, though, there's no path to Settings or to quit the app cleanly (the regular menu bar belongs to whatever app is in front, not EdgeControl).

Changes

  • Switch NSApp activation policy from .regular to .accessory: no Dock icon, no Cmd-Tab entry, no top-of-screen menu bar.
  • Install an NSStatusItem in the menu bar with a Settings… / Quit menu.
  • Icon is square.grid.2x2.fill at 16pt .semibold — reads instantly as "dashboard" and matches the visual weight of common status items.
  • Keep the (now unused) buildMainMenu in place so existing Cmd-Q wiring continues to compile; downstream forks that want to switch back to .regular don't have to re-derive the menu structure.

Compatibility

If you'd prefer to keep the Dock-icon experience as default and make accessory mode a setting toggle, happy to revise — say the word.

Kiosk-mode users typically don't want EdgeControl in the Dock or
Cmd-Tab — the dashboard window lives on a secondary display and the
app is otherwise headless from the main Mac's perspective. Without a
menu-bar affordance, though, there's no path to Settings or to quit
the app cleanly (the regular menu bar belongs to whatever app is in
front, not EdgeControl).

Changes:
- Switch NSApp activation policy from .regular to .accessory:
  no Dock icon, no Cmd-Tab entry, no top-of-screen menu bar.
- Install an NSStatusItem in the menu bar with a Settings… / Quit
  menu. Icon is square.grid.2x2.fill at 16pt .semibold — reads
  instantly as "dashboard" and matches the visual weight of common
  status items.
- Keep the (now unused) buildMainMenu in place so existing Cmd-Q
  wiring continues to compile; downstream forks that want to switch
  back to .regular don't have to re-derive the menu structure.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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