Skip to content

feat(macos): implement native PlatformMenuBar for macOS system menu (#612) - #626

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/612-macos-platform-menu-bar
Aug 26, 2026
Merged

feat(macos): implement native PlatformMenuBar for macOS system menu (#612)#626
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/612-macos-platform-menu-bar

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

Implements native macOS top system menu bar integration via Flutter's PlatformMenuBar.

Changes

  1. QueryaPlatformMenuBar (lib/features/macos/querya_platform_menu_bar.dart):
    • Application Menu: About Querya, Preferences (Cmd+,), Hide (Cmd+H), Hide Others (Cmd+Alt+H), Show All, Quit (Cmd+Q).
    • File Menu: New Connection (Cmd+N), New Query Tab (Cmd+Shift+N), Open SQL Script (Cmd+O), Save Query (Cmd+S), Run Query / Script (Cmd+Enter), Close Tab (Cmd+W).
    • Edit Menu: Undo (Cmd+Z), Redo (Cmd+Shift+Z), Cut (Cmd+X), Copy (Cmd+C), Paste (Cmd+V), Select All (Cmd+A).
    • View Menu: Toggle Sidebar (Cmd+B), Compound Filter Bar (Cmd+F), Groupings & Pivot Drawer (Cmd+G), Return to Start Screen (Cmd+Shift+0), Full Screen.
    • Window Menu: Minimize, Zoom.
    • Help Menu: Welcome Tour & Guide (F1), Keyboard Shortcuts Cheat Sheet (Cmd+Shift+H), Querya GitHub Repository & Bug Report URLs.
  2. MainScreen Integration (lib/features/main_screen/main_screen.dart):
    • Wrapped MainScreen with QueryaPlatformMenuBar binding global intents and bridge callbacks.
  3. Tests:
    • Widget tests in test/features/macos/querya_platform_menu_bar_test.dart validating full menu structure, keyboard shortcut activators, and callback routing.

Closes #612

@github-actions github-actions Bot added enhancement New feature or request frontend Theme parser epic label: frontend labels Aug 26, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 072a4c5 into dev Aug 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request frontend Theme parser epic label: frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant