-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
UI style errors: Menu items capitalization and … (ellipses) mark misuse #16846
Comments
We would be more than happy to accept a PR that fixes these things! I'll mark it up. |
I would also change To old-timers like me, the |
I'm still a fresh beginner I saw this as a "good first issue" and thought I would try to take a look at the repository but I can't even navigate the repository successfully to find the relevant files for the issue let alone solve it. If anyone sees this and would like to assist me that would be very much appreciated I want to learn how this program works and more! |
@HartJesse Resource files for different languages are in src/cascadia/TerminalApp/Resources. However, I think to fully resolve this issue, all locales must be updated, not just English. |
It will be sufficient to update only the English text. The rest of the localizations are automatically uploaded to a human translation service. |
Thanks for the info you all, I just started learning about resource files and how they work as a result of all this. I will continue working on the issues. |
I believe I have made the appropriate changes in the associated resource file however I am unable to build and test the repository. I have been trying everything but I keep getting errors stating I need to reconfigure my mappings, solutions need to be built and deployed first etc. If anyone can point me in the next correct direction that would be amazing! |
It's hard to say what your issue is given just your description. I believe it would make things easier if you post screenshots or copy the error message here. Given that you mentioned "mappings" I suspect that you forgot to update your git submodules however. If you open cmd/powershell in the repository you can do this with the following command:
|
@lhecker Oh yeah I definitely did not do that I will try to do that next thank you! Here is a screenshot of my visual studio right now. |
Oh! You can ignore that error. VS hates our project and refuses to specify why, but it works fine. If you select Debug and x64 from those Configuration and Platform dropdowns, CascadiaPackage from the Target dropdown, and click the Play/Run button it should work! |
@HarshNarayanJha Thanks for taking on this issue. The The You changed "Admin" to "admin", but left an uppercase for Another arbitration question to Dustin about |
This is my one hill to die on! If ever I could change the style guide itself, I would. KiB stays, or we change the value to exactly 5000 😉 |
@DHowett You know you could actually write a COM shell extension that adds a column showing file sizes with the KiB, MiB, … labels in the File Explorer if you want 😉 You could even add another one that uses 1000 instead of 1024 multipliers with the traditional KB, MB, … labels. After all, using 1024 to be able to compute it using a shift operation isn't exactly faster than a proper /1000 anymore. You could start a trend away from 1024 and avoid future generations the confusion rooted in 1970's performance hacks. But about Terminal, now that you mention it, the problem isn't only to make it clear it's 5120 and not 5000. Ok, I would use "You are about to paste text that is longer than 5120 UTF-8 code units. Do you wish to continue?" to remove all ambiguity. It's clearer and isn't wrong per the style guide and inconsistent with everything else on Windows. |
Guess I missed those strings! I will push a commit soon |
@HarshNarayanJha I have also been looking into fixing this issue I corrected most of the strings in my own branch of the repository but was never able to build my repository and run the new version if the terminal on my PC. You appear to be getting it to run on your machine would you ever be willing to hop on discord or something to show me what I'm doing wrong because I would like to learn more and be able to solve some issues officially myself! Anyone else who may be reading this is also open to help :) |
I can help. You can reach out to me at (tusharsnx) on discord 🙂 Just a side note, I'd love a discord server for WT development queries and general discussion. People would be able to collaborate with others for fixes and features. (Yeah, I know Github Discussion exists but I rather use Discord 😄)
"... UTF-8 code units" sounds very technical IMO. |
@tusharsnx I will contact you in the morning on discord then thanks for offering your assistance:) |
Sure @HartJesse I would love to collab. May I know your discord? |
Should I keep the ellipses in |
I couldn't find
For
I'm not sure where this appears in the UI. The rule is to have ellipses only if the action mentionned in the menu item label does not get executed before further details are provided in a subsequent dialog or UI element.
Of course, even the new Notepad doesn't follow the rules properly, but the original Notepad since Windows 3.0 to Windows 10 did use I'm not sure if they're supposed to update the style guide to remove all ellipses, but everything I could find still explains the same rules we had since Windows 3.0. |
I was talking about these (TerminalSettingsModel)
Yup I agree. I have no idea if I should add (...) to Find and Export options, as they do open a new window to continue the task, denoting that there is at least one stage before which it can be dismissed |
Looking at recent versions of Word and Excel, and the new versions of Notepad and Paint, it seems they removed the |
Okay so most everything else in this thread I think I'm on board with. But the last (some of those are my own commands, but most of those are built-in) Those entries have the |
@zadjii-msft Similar for Looking at all the items with "...", I believe these are the only built-in ones: But as I said, I feel less strongly about this because the command panel is not a standard cascading menu UI element, so it doesn't necessarily imply the same UI consistency expectations. This started as a request to fix a few items in the tab contextual menu and is turning into a whole UI style review. Sorry for starting this whole thing. I do feel Windows in general would benefit from more UI polishing though, so it's not just wasted time. |
It's actually good! If a UI Style redesign would benefit all of the windows, it's doable. We just need a official conformation from Microsoft Staff about these refactors. My latest commit is in line with these changes, and it's ready for merging |
@HarshNarayanJha my discord is jesswurd |
Hello, I'm currently working on a fix for this issue and had a quick question. When updating the capitalization, should colors with modifiers (e.g. "sea green") remain with both words capitalized? Thanks. |
Since they are fully qualified colour (or color if you are american) names, I think they should be both capital. |
Thanks! |
… misuse (#16886) I changed the improper capitalization and misuse of ellipses mark (...) in the context menu and various other places. Fixes issues #16819 and #16846 ## PR Checklist - [ ] Closes #16846 - [x] Tests added/passed - NA - [x] Documentation updated - NA - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [x] Schema updated (if necessary) - NA
… misuse (#16886) I changed the improper capitalization and misuse of ellipses mark (...) in the context menu and various other places. Fixes issues #16819 and #16846 ## PR Checklist - [ ] Closes #16846 - [x] Tests added/passed - NA - [x] Documentation updated - NA - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [x] Schema updated (if necessary) - NA (cherry picked from commit 8bd9578) Service-Card-Id: 92350387 Service-Version: 1.20
… misuse (#16886) I changed the improper capitalization and misuse of ellipses mark (...) in the context menu and various other places. Fixes issues #16819 and #16846 ## PR Checklist - [ ] Closes #16846 - [x] Tests added/passed - NA - [x] Documentation updated - NA - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [x] Schema updated (if necessary) - NA (cherry picked from commit 8bd9578) Service-Card-Id: 92350386 Service-Version: 1.19
In #16886, the key for the nested action got renamed from `Split Pane...` to `Split pane`. This accidentally caused a collision because now there's two actions with the same name! The settings model then prefers the user's action over the one defined in defaults.json, thus completely hiding the nested version. I tried to balance the stylistic recommendations from #16846 (mainly [this comment](#16846 (comment)) since it gave some excellent examples) while trying to maintain muscle memory as much as possible (with similar substring sequences). There was also one case where we still used "the tab" so I removed the "the" for consistency. Side effect of #16886 which closed #16846 Closes #17294 Closes #17684
In #16886, the key for the nested action got renamed from `Split Pane...` to `Split pane`. This accidentally caused a collision because now there's two actions with the same name! The settings model then prefers the user's action over the one defined in defaults.json, thus completely hiding the nested version. I tried to balance the stylistic recommendations from #16846 (mainly [this comment](#16846 (comment)) since it gave some excellent examples) while trying to maintain muscle memory as much as possible (with similar substring sequences). There was also one case where we still used "the tab" so I removed the "the" for consistency. Side effect of #16886 which closed #16846 Closes #17294 Closes #17684 (cherry picked from commit 0a7c258) Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgSFdXc Service-Version: 1.21
Windows Terminal version
1.20.10572.0
Windows build number
10.0.22631.3235
Other Software
No response
Steps to reproduce
Display the tab contextual menu, preferably with a second pane open to show all options.

There are several problems with this menu.
First: Excessive capitalization
If you check out the style guide: https://learn.microsoft.com/en-us/style-guide/text-formatting/formatting-common-text-elements
You'll see that
UI text or strings
should useSentence-style capitalization
, this is further described at https://learn.microsoft.com/en-us/style-guide/capitalizationTab
,New
,Window
,Right
are not brands, products, or service names, they should not be capitalized.This looks worse in other languages as determiners make the capitalized words lose their vertical alignment, as seen in #16819.
Second: Misuse of
…
(ellipses)From the Windows UX design guide: https://learn.microsoft.com/en-us/windows/win32/uxguide/text-ui#guidelines
I know this is getting out of style, but
…
and>
next to menu items were originally designed to provide predictability.The
…
after a menu item means selecting it will display a follow-up dialog or window asking for more options before completing the selected action, while>
after a menu item means selecting it will display a cascading submenu, finally, neither means selecting it will perform the action immediately.Therefore, they are mutually exclusive, you cannot have
…
and>
on the same menu item, clicking it either displays a dialog/window, or a submenu, it cannot do both.More modern Windows UI is trying to get rid of
…
on menu items, trading discoverability and predictability for the sake of visual style, but including it when it doesn't mean a subsequent window will get displayed breaks both the UI guidelines we had since Windows 3.x, and the modern look. ThoseClose…
have to go.Note the tab contextual menu was taken as an example because it contains all the problems I wanted to mention, but other menus also contain similar errors.
Expected Behavior
UI consistency (didn't there used to be a UI guidelines check before inclusion as a Windows component?).
Actual Behavior
Unpredictability and confusion 🤪
The text was updated successfully, but these errors were encountered: