-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
[WIP] Colored titlebar for Windows #39972
Merged
Merged
Changes from 14 commits
Commits
Show all changes
35 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 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
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
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
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.
Why adding
!isMacintosh
here? Wouldn't that break the custom titlebar on Macs?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.
I don't think it would. The
!isDev
addresses some bug (electron/electron#3647) that was fixed for Windows (for me at least). For MacOS, ifisDev
is false the custom titlebar will still work. The reason I added the!isMacintosh
was to allow VS Code to use the custom titlebar in non-MacOS environments even whenisDev
is true (since there is no bug then).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.
Why not putting that directly in the precedent if or straight in the variable declaration, like this:
Might want to look also why is
!!
beforeconfig.extensionDevelopmentPath
because the double!
cancels themselves.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.
Yeah it is a little weird to have that on the separate line. I was keeping the computation of
isDev
separate as it was before, which would make the if statement less complicated.As for the
!!
it is my understanding that the operation castsconfig.extensionDevelopmentPath
to a boolean. That way, if!this.environmentService.isBuilt
isfalse
, thenisDev
evaluates totrue
and not whatever the value ofconfig.extensionDevelopmentPath
is. However, given that this is plugged into a laterif
statement, this is likely unnecessary. It may only be so that TypeScript identifiesisDev
as a boolean.