3 ms·
The second image on the Electron home page claims that it has "native menus." However, as I noted in 2015 (and haven't seen any evidence of it changing - https:
by krallja 9y ago
The second image on the Electron home page claims that it has "native menus." However, as I noted in 2015 (and haven't seen any evidence of it changing - https://github.com/electron/electron/issues/2504 https://github.com/electron/electron/issues/2504), it absolutely does not have native menus. There's nothing native about Electron at all; if there was, it wouldn't be stylable via CSS, and that would defeat the purpose of the project. But Electron should at least try to emulate the native menu behavior as close as possible. That doesn't seem to be a priority for the project, however.
- jancsika 9y agonw.js has native menus: https://nwjs.io/ https://nwjs.io/ That said, I'd steer away from native menus unless the GUI toolkit specifies their behavior precisely, including how the menu API interacts with HTML5 including DOM bubbling, CSS layout calculations, etc. Otherwise you'll need to research the behavior yourself, for each platform, defeating one of the benefits of using a cross-platform HTML5 toolkit in the first place.
- city41 9y agoElectron does have native menus on OSX. I always got the impression that OSX is the main OS the team is interested in supporting.
- user5994461 9y agoQt is native and it has styling by CSS. It's not impossible to do.