wails/v3
Lea Anthony fa06d48497
feat(v3): Add UseApplicationMenu option for cross-platform menu support (#4944)
* feat(v3): Add UseApplicationMenu option for cross-platform menu support

Add `UseApplicationMenu` option to `WebviewWindowOptions` that allows
windows on Windows and Linux to inherit the application menu set via
`app.Menu.Set()`.

This provides a simpler cross-platform approach:
- On macOS: No effect (app menu is always global)
- On Windows/Linux: Window displays the application menu

Benefits:
- Eliminates need for platform-specific menu code
- Per-window opt-in maintains backwards compatibility
- Explicit window menus still take priority

Updated:
- webview_window_options.go: Added UseApplicationMenu bool field
- webview_window_windows.go: Check UseApplicationMenu when no window menu set
- webview_window_linux.go: Check UseApplicationMenu when no window menu set
- examples/dialogs: Use UseApplicationMenu instead of conditional SetMenu
- examples/menu: Use UseApplicationMenu instead of explicit SetMenu
- docs: Updated menu and window options documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* docs: Remove incorrect 'Menu Options' section header

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 19:51:31 +11:00
..
cmd/wails3 chore: disable setup wizard from CLI 2025-12-14 07:23:49 +11:00
examples feat(v3): Add UseApplicationMenu option for cross-platform menu support (#4944) 2026-02-02 19:51:31 +11:00
internal chore(v3): bump to v3.0.0-alpha.65 and update changelog [skip ci] 2026-02-01 03:10:36 +00:00
pkg feat(v3): Add UseApplicationMenu option for cross-platform menu support (#4944) 2026-02-02 19:51:31 +11:00
scripts Add clean v3 changelog validation workflow with external Go script 2025-07-13 10:33:00 +10:00
tasks feat: adapt iOS and Android message processors to RuntimeRequest transport 2025-12-10 21:27:04 +11:00
test fix(docker): add BuildKit syntax directive for heredoc support 2026-01-31 22:48:41 +11:00
test-assets Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
tests/window-visibility-test feat(v3): add server mode for headless HTTP deployment (#4903) 2026-01-25 14:33:44 +11:00
wep [WEP] Customise Window Titlebars (#3508) 2024-06-08 13:42:27 +10:00
.gitignore Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
.prettierignore chore: add Prettier as format tool (#2689) 2023-05-30 07:40:54 +10:00
.prettierrc.yml chore: add Prettier as format tool (#2689) 2023-05-30 07:40:54 +10:00
ANDROID_ARCHITECTURE.md feat: Add Android support for Wails v3 2025-11-28 21:06:59 +11:00
build_ios.sh Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
fix-darwin-ios-constraints.sh Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
go.mod feat(v3): add server mode for headless HTTP deployment (#4903) 2026-01-25 14:33:44 +11:00
go.sum feat(v3): add server mode for headless HTTP deployment (#4903) 2026-01-25 14:33:44 +11:00
IOS_ARCHITECTURE.md Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
IOS_FEATURES_TODO.md Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
IOS_RUNTIME.md Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
old Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
README.md Update doc dependencies 2023-09-08 10:57:47 +10:00
release-notes.txt v3.0.0-alpha.26 2025-08-24 02:40:05 +00:00
release_notes.md v3.0.0-alpha.26 2025-08-24 02:40:05 +00:00
Taskfile.yaml feat(v3): add server mode for headless HTTP deployment (#4903) 2026-01-25 14:33:44 +11:00
test-ios-compilation.go Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
test-new-ios-build.sh Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
TESTING.md feat: Complete App API restructuring with organized manager pattern (#4359) 2025-06-21 19:51:14 +10:00
UNRELEASED_CHANGELOG.md feat(v3): Add UseApplicationMenu option for cross-platform menu support (#4944) 2026-02-02 19:51:31 +11:00
verify-ios-setup.sh Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00

v3 Alpha

Thanks for wanting to help out with testing/developing Wails v3! This guide will help you get started.

Getting Started

All the instructions for getting started are in the v3 documentation directory: mkdocs-website. Please read the README.md file in that directory for more information.