mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
macOS menu support #24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GregorBiswanger on GitHub (Oct 24, 2017).
The Menu API needs an other Menu implementation for the macOS:
https://electron.atom.io/docs/api/menu/#notes-on-macos-application-menu
@rakista112 commented on GitHub (Oct 1, 2020):
Is this still needed? I'll do this.
@GregorBiswanger commented on GitHub (Oct 1, 2020):
Hi, yes that would be great!
Here is a video tutorial on how to code at Electron.NET:
https://youtu.be/Po-saU_Z6Ws
@rakista112 commented on GitHub (Oct 4, 2020):
Yeah, I'm following it right now
@rakista112 commented on GitHub (Oct 6, 2020):
@GregorBiswanger making menus for Mac doesn't seem to need modifications to API.

I made this menu using our existing API.
You just have to format the menu according to official Electron's Menu.
Just follow the ones with the isMac boolean check.
Here's the code I used.
@cosmo0 commented on GitHub (Mar 16, 2021):
Can confirm that it works fine.
The only weird thing is that in MacOS there is no "quit" option so cmd+Q doesn't work out of the gates.