-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Custom Menubar Implementation #51422
Merged
Merged
Changes from all commits
Commits
Show all changes
102 commits
Select commit
Hold shift + click to select a range
f4e80de
Initial changes
rianadon ddddfde
Add custom titlebar
rianadon 04f2b9b
Revert vibrancy changes, cross-platform support
rianadon 96c530b
Add hover states for titlebar
rianadon 3fc07e3
Implement button actions, make maximize icon change
rianadon c758472
Merge with master
rianadon 12a1393
Remove debugging statement
rianadon 7f12e76
Remove formatting changes
rianadon c840d0d
Remove more formatting changes
rianadon be8cb21
Fix compilation errors
rianadon a66d521
Fix code formatting
rianadon bec93d4
Make icon sizes independent of zoom
rianadon f2648cd
Make positioning of icons same as otherWindows apps
rianadon c9bf4c9
Use setting, standard titlebar
rianadon 1fdd9ed
Make sizing consistent with Windows
rianadon ae5e8d4
Make window resiable from top
rianadon 233784d
More consistency
rianadon 80411d3
Make titlebar render correctly on reload
rianadon 94cb977
More positioning changes
rianadon b5bdbf1
Merge with master
rianadon a0b33ed
Merge remote-tracking branch 'upstream/master' into titlebar
bpasero 25e5ca6
Make frame show by default on Windows
rianadon 63f86d2
Merge branch 'titlebar' of https://github.com/rianadon/vscode into ti…
rianadon 961ec4c
Try to make window draggable before load
rianadon a5a0553
Fix drag issue
rianadon 0c7174b
Remove unnecessary console.log
rianadon 8667ae7
Merge remote-tracking branch 'upstream' into titlebar
rianadon 2afb336
Make Linux compatible
rianadon 4ce2f07
Titlebar fixes for linux
rianadon b3db9ac
Remove unused import
rianadon 0976b51
Make framless window draggable on LInux
rianadon dc5f62b
Add hover transitions
rianadon 8c8de9f
Make double-clicking icon close window
rianadon 91ac8c8
Merge remote-tracking branch 'upstream/master' into titlebar
bpasero c1e4b74
Merge remote-tracking branch 'upstream/master' into titlebar
rianadon c033035
context menus working on windows
sbatten b15089e
addressing some commit feedback
sbatten 60e8c7c
menubarpart and ipc for native construction
sbatten 74c2115
make menubarpart independent of titlebarpart
sbatten 91a93b4
Merge branch 'master' into titlebarplus
sbatten 739837c
adding separators, more file menu actions, hiding when native, and be…
sbatten 3716227
more cleanup of ipc and adding fallback mechanic
sbatten 7ed750e
mouse interaction starting to make sense
sbatten 8520d3f
cleanup of main process menu and moving preferences and recent to top…
sbatten f98d6cc
edit menu
sbatten d0e84c4
adding selection menu
sbatten 4f0ca64
adding holders for the remainder of menus
sbatten 5e9366f
preferences does not fallback currently, moved to render side
sbatten 3c93662
changing to svg
sbatten 71d4f70
adding keyboard navigation
sbatten ff427e0
enable mnemonics (need to clean this up)
sbatten fc07fa2
get keybindings in menubar
sbatten 06df957
bring titlebarplus up to date
bpasero 475c1a8
toggle mnemonics, add checked functionality, add auto save
sbatten ba9b008
work for fullscreen and menubar visibility
sbatten 14bc5bb
aria roles
sbatten bc38091
box shadow around menus
sbatten 0a48719
html context menus
sbatten ea89fc4
cleaning up titlebar, making context menus match
sbatten 524568a
hover feedback on toplevel menubar
sbatten 20d4bb7
Merge branch 'master' into titlebarplus
sbatten 703ba64
cleanup from merge conflicts
sbatten b99fad3
more fixes from merge
sbatten 282292b
bugfixes and menubar hiding fix
sbatten 14abe64
fix duplicate editor action and keyboard nav issue
sbatten 2e69619
small menubar toplevel view fix
sbatten ca7c213
hydrate menus and bring back checked functionality
sbatten f443d73
remove empty line.
rebornix 1a64f45
removing addMaximizeListener IPC, no references
sbatten 3a67ac6
move toggle autosave action to fileActions
sbatten ef65a1f
addressing some css feedback and resizability
sbatten f7dc69a
clean up custom title check
sbatten e327696
workbench.ts feedback
sbatten 8db6f8d
window.ts move listeners
sbatten 9d89676
titlebarPart.ts feedback
sbatten 929679e
layout.ts
sbatten b2a078b
move lines back in workbench.ts
sbatten 1636787
unrelated
sbatten a68a975
add editor layout menu, localize top levels
sbatten 69aa29f
handle menu/title overflow interaction
sbatten f08cdae
maximize window in window configuration
sbatten ffc8c1a
several fixes and cleanup for native side
sbatten a83a514
merge master
sbatten 179eae8
fix from merge and make titlebar position more reliable
sbatten 9f03987
work with menubar visibility toggle
sbatten 15bae1e
handling zoom for titlebar controls and icons as well as toggling title
sbatten fde576a
handle zoom for menubar
sbatten 0afa3e5
addressing CR from ben
sbatten cc694df
adjusting relauncher for settings change
sbatten 2067a66
reducing the size of the menus so view doesn't take a huge amoun of s…
sbatten 44e6014
fixing close icon coloring for light theme
sbatten f4e55b7
move maximized into getUrl
sbatten bd1a88a
prevent double registering event listener
sbatten 062a11e
Merge branch 'master' into titlebarplus
sbatten 8c5a4fd
revert unintentional change
sbatten 329d38e
fallback to old menubar when using macOS or native title
sbatten 816a3bc
polishing the title position with menubar
sbatten a065656
app icon url
sbatten 11c186f
some cleanup and :lipstick:
bpasero 37b338d
switching to accessKey, way cleaner
sbatten 794d9de
only do mnemonics on menus
sbatten 07706d0
safer method of setting mnemonic
sbatten File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,6 +87,10 @@ | |
color: inherit; | ||
} | ||
|
||
.monaco-menu .monaco-action-bar.vertical .action-label.checked:after { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sbatten is this used currently anywhere? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bpasero this adds the checkmark to items that have been checked in the menu, like auto save |
||
content: ' \2713'; | ||
} | ||
|
||
/* Context Menu */ | ||
|
||
.context-view.monaco-menu-container { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbatten shouldn't the concept of mnemonics only be used when the action shows up in a menu? It seems to me your changes make this happen anywhere the action is showing up. Maybe this should be an option for the action item to pass through to enable this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here I followed the pattern I thought was present in the electron menu. If the action item label has &&, it will create a mnemonic. I only pass these in menu creation. I might be able to move this to ui/menu.ts if you prefer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbatten how about an option to control this behaviour? would that be easy to add?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bpasero in the interest of getting some insider testing, are you willing to put off changing this in the next check-in? I'd like to focus on items that need to be fixed for initial insider testing so I can then shift to the milestone goal (this included)