-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Update caption buttons to use glyphs #13341
Conversation
WOW! Can you share some screenshots? I didn't realize these glyphs existed! |
Does this happen to fix either of: by any chance? I'm guessing they might!? |
With certain scaling levels, the new fluent icons are always blurry on titlebars (win32, UWP, terminal). I looked into the minimize button problem:
From this I presume that the minimize button is still using the old icon. So perhaps the Terminal/UWP vertical alignment is correct. |
@check-spelling-bot ReportUnrecognized words, please review:
Previously acknowledged words that are now absentazurewebsites Checkin condev Consolescreen css cxcy DCompile debolden deconstructed DECRST DECRSTS devicefamily dxp errno FARPROC GETKEYSTATE guardxfg HPAINTBUFFER HPROPSHEETPAGE iconify ipa LLVM LPCHARSETINFO MAPVIRTUALKEY MSDL mspartners ned newcursor nlength NOWAIT PENDTASKMSG pgorepro pgort PGU Poli PPORT PSMALL redistributable SOURCESDIRECTORY Timeline timelines toolbars unintense UWA UWAs VKKEYSCAN wddmconrenderer wdx windev WResult xfgTo accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands... in a clone of the git@github.com:dansmor7/terminal.git repository
✏️ Contributor please read thisBy default the command suggestion will generate a file named based on your commit. That's generally ok as long as you add the file to your commit. Someone can reorganize it later.
If the listed items are:
See the 🔬 You can test your commits without appending to a PR by creating a new branch with that extra change and pushing it to your fork. The check-spelling action will run in response to your push -- it doesn't require an open pull request. By using such a branch, you can limit the number of typos your peers see you make. 😉 🗜️ If you see a bunch of garbageIf it relates to a ... well-formed patternSee if there's a pattern that would match it. If not, try writing one and adding it to a Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines. Note that patterns can't match multiline strings. binary-ish stringPlease add a file path to the File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.
|
I was able to improve the rendering by wrapping the icon inside a Viewbox. However, it won't perfectly match UWP, because scaling is calculated differently. This is probably the best that can be done for now. |
notes from discussion, last time, when I missed discussion: fractional scaling already sucks, these glyphs are better now, lets go for it. We don't really know where they came from, they aren't documented, but lets go for it anyways. |
I found these icons here. |
OH DANG! I was convinced they were a private API. Naw, we gotta do this. I love it. |
Hello @zadjii-msft! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Unfortunately, spellbot is gonna be mad at you until you add "Viewbox" to |
You know what, I'll just fix it in post |
This has been going very well in 1.16; I marked it up for 1.15 but then thought twice. @zadjii-msft can you gut-check me? It's worked beautifully on everything we've thrown at it. |
@DHowett No one on the team (read: on 1.16) uses Windows 10. That would be my reluctance. But it's a pretty easy revert if something does |
I do! I'm also a crazy person. :) |
The min/max/close buttons now use the same font glyphs used in Windows instead of paths. They will also look different depending on whether you use Windows 10 or 11. With certain scaling levels, the new fluent icons are always blurry on titlebars (win32, UWP, terminal). I didn't check, but I assume that the glyphs will not be blurry on Windows 10 because they use the old font. However, the glyps seem to have some alignment issues, making them even more blurry, and I'm not sure if I can fix that. I looked into the minimize button problem: * The UWP titlebar has 4px/5px, just like Terminal, but win32 titlebars have 5px/4px * The new fluent icons have rounded caps, but the win32 minimize one doesn't (it's very subtle) * The win32 minimize button is not blurry when the other buttons are From this I presume that the minimize button is still using the old icon. So perhaps the Terminal/UWP vertical alignment is correct. I was able to improve the rendering by wrapping the icon inside a Viewbox. However, it won't perfectly match UWP, because scaling is calculated differently. The icon width is 10px, which on 1.25x scaling would become 12.5px. UWP titlebars truncate that to 12px, while Xaml renders that as 13px. This is probably the best that can be done for now. I found these icons [here](https://docs.microsoft.com/en-us/windows/apps/design/style/segoe-fluent-icons-font). (cherry picked from commit 67f6b29) Service-Card-Id: 85488527 Service-Version: 1.15
🎉 Handy links: |
🎉 Handy links: |
The min/max/close buttons now use the same font glyphs used in Windows instead of paths.
They will also look different depending on whether you use Windows 10 or 11.