5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 18:10:48 +08:00
wails/v2/pkg/menu
stffabi 0bf41090b0
[v2, darwin] Add some missing default shortcuts (#2586)
* [v2, darwin] Add "Hide, Hide Others, Show All“ to appmenu

This also includes shortcuts support for those commands.
Arrange the menu items in the well known MacOS order.

* [v2, darwin] Add Window menu with well known shortcuts Minimize, Full-Screen and Zoom.
2023-04-20 12:38:32 +02:00
..
colours refactor: move from io/ioutil to io and os packages 2021-11-25 12:15:43 +08:00
keys Releasetest/release workflow (#1869) 2022-09-18 08:55:21 +10:00
callback.go [v2] Misc template updates 2021-09-19 17:14:06 +10:00
cols.go [mac] migrated colour code 2021-10-14 20:38:11 +11:00
contextmenu.go Fixed and refactored context menu support 2021-01-13 22:51:44 +11:00
mac.go [v2] Misc template updates 2021-09-19 17:14:06 +10:00
menu.go Feature: Add menu helpers 2022-04-09 20:36:48 +10:00
menuitem.go Windows tray menus (#2181) 2022-12-06 20:55:56 +11:00
menuroles.go [v2, darwin] Add some missing default shortcuts (#2586) 2023-04-20 12:38:32 +02:00
README.md UTF-8 test 2020-11-27 22:22:30 +11:00
styledlabel_test.go Releasetest/release workflow (#1869) 2022-09-18 08:55:21 +10:00
styledlabel.go chore: remove unreachable code (#2182) 2022-12-06 08:27:48 +11:00
tray.go Support disabling tray menu. Fix font sizing. Tooltip in tray menu support. 2021-03-18 20:54:53 +11:00
type.go Support Hidden/Disabled. Normal->Text 2020-11-24 20:12:10 +11:00
windows.go [windows] Misc updates for feature parity 2021-09-19 17:14:06 +10:00

Menus

Menu support is heavily inspired by Electron's approach.

Features

  • Supports Text, Checkbox, Radio, Submenu and Separator
  • Radio groups are defined as any number of adjacent radio items
  • UTF-8 menu labels
  • UTF-8 menu IDs