-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: Investigate custom menu implementation #29024
Comments
Hi @bpasero, you can implement the menu in JS in a Browserwindow and then rendering the workbench in a Webview. |
@WaiSiuKei why so complicated, the window can be frameless and own everything, including menu and title? |
Yes, the browserWindow can be frameless, with menu and title created by HTML. The reason is that when you click the menu, the activeElement of the webview will no change, only the webview itself will be blur, you can focus the webview back and send the actionId to webview just like the menu works now. The fous/blur issue is most concerned. An Opposite Example is ghedit , it inserts the menu before the workbench, but you will find that there is no copy/paste in the menu, it cannot impletement the functionality because the focus of editor is lost. |
Ah good point, needs more thinking indeed. |
Results of investigation with other applications. The goal of this investigation is to see if a custom menu bar will solve the problems/issues being reported to us by testing other applications that have gone this route. GitHub Desktop use a combined menu/title and an Atom Plugin provides a similar design. We use notepad as a baseline that uses a true native menu bar to compare. Accessibility
Other Issues
|
When will this issue get some love from the DEV's? it will really be easy to the eyes. |
Good to see this in the June 2018 Iteration plan - Item 33677 listed above should however be listed as an Accessibility issue due to the impact that differential positioning, shading and screen reader accessibility caused by that item for sight-impaired developers. |
Loving the new custom menu's so far (minor issues aside) -- is the plan for them to be themable? |
@eamodio yes, as of this moment they are just light and dark, but theming is coming. |
How do we use this, is it implemented in some pull request or update, because I'm on Insider builds and its not there, AFAIK. If its not released yet, how long until the update including this would at least come to insider. |
@MulverineX Thank you for your interest. It is not currently enabled by default, but you can enable on Insiders by setting |
This is enabled by default for Windows in Insiders and we intend to make it default for the stable release this milestone. |
To fix 35+ menu issues: https://github.com/Microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Amenu
The text was updated successfully, but these errors were encountered: