🎨
This commit is contained in:
parent
b20606c718
commit
5ab4fd261c
1 changed files with 8 additions and 7 deletions
|
@ -262,11 +262,11 @@ Get an array containing the menu's items.
|
||||||
## Notes on macOS Application Menu
|
## Notes on macOS Application Menu
|
||||||
|
|
||||||
macOS has a completely different style of application menu from Windows and
|
macOS has a completely different style of application menu from Windows and
|
||||||
Linux, here are some notes on making your app's menu more native-like.
|
Linux. Here are some notes on making your app's menu more native-like.
|
||||||
|
|
||||||
### Standard Menus
|
### Standard Menus
|
||||||
|
|
||||||
On macOS there are many system defined standard menus, like the `Services` and
|
On macOS there are many system-defined standard menus, like the `Services` and
|
||||||
`Windows` menus. To make your menu a standard menu, you should set your menu's
|
`Windows` menus. To make your menu a standard menu, you should set your menu's
|
||||||
`role` to one of following and Electron will recognize them and make them
|
`role` to one of following and Electron will recognize them and make them
|
||||||
become standard menus:
|
become standard menus:
|
||||||
|
@ -283,15 +283,16 @@ action, you should set the `role` attribute of the menu item.
|
||||||
|
|
||||||
### Main Menu's Name
|
### Main Menu's Name
|
||||||
|
|
||||||
On macOS the label of application menu's first item is always your app's name,
|
On macOS the label of the application menu's first item is always your app's
|
||||||
no matter what label you set. To change it you have to change your app's name
|
name, no matter what label you set. To change it, modify your app bundle's
|
||||||
by modifying your app bundle's `Info.plist` file. See [About Information
|
`Info.plist` file. See
|
||||||
Property List Files][AboutInformationPropertyListFiles] for more information.
|
[About Information Property List Files][AboutInformationPropertyListFiles]
|
||||||
|
for more information.
|
||||||
|
|
||||||
## Setting Menu for Specific Browser Window (*Linux* *Windows*)
|
## Setting Menu for Specific Browser Window (*Linux* *Windows*)
|
||||||
|
|
||||||
The [`setMenu` method][setMenu] of browser windows can set the menu of certain
|
The [`setMenu` method][setMenu] of browser windows can set the menu of certain
|
||||||
browser window.
|
browser windows.
|
||||||
|
|
||||||
## Menu Item Position
|
## Menu Item Position
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue