-
Notifications
You must be signed in to change notification settings - Fork 2.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
Align quickpick labels #12247
Align quickpick labels #12247
Conversation
I'm going to address this problem in a different manner that also handles a few related problems. |
|
df35510
to
49e5481
Compare
OK, now this also fixes the debug quickpick similarly as in #12239 👍 |
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.
All the listed scenarios, including those from #12239, look good to me.
@gbodeen I've noticed issues with other file-icon themes such as |
Pending fix of icon alignment issue
seti icon theme: theia icon theme: debug menu still good: ...so empirically this draft is looking better. I think it's also theoretically better, as the current approach is:
|
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.
@gbodeen do you mind explaining the change from f41e71b? If we are to make the decision to remove the checkmark from isToggled
commands it should probably be documented as a breaking change, and it should not be removed as part of the css but rather where we add the checkmark in the first place:
theia/packages/core/src/browser/quick-input/quick-command-service.ts
Lines 140 to 146 in a5e1162
private getItemIconClasses(command: Command): string[] | undefined { | |
const toggledHandler = this.commandRegistry.getToggledHandler(command.id); | |
if (toggledHandler) { | |
return codiconArray('check'); | |
} | |
return undefined; | |
} |
Perhaps I misunderstood. I thought the checkboxes were never supposed to be visible. My second draft, as discovered by Fernando above, had an unexpected side effect of making them visible under certain circumstances where they had not previously been visible. What is the intended behavior? (I'll be able to touch this again later this week.) |
Those are not checkboxes but check codicons that should appear when a toggle command is "on". |
343237c
to
da50af0
Compare
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.
The changes look good to me. Different icon themes and the checkmarks seem to layout correctly.
@vince-fugnitto Care to take another look as well?
@msujew I still noticed an issue and possibly others where the icons are not properly aligned. term.mp4 |
Closing in favor of the updates from #12239. |
What it does
This is an alternative to #12239.
I noticed a few flaws in the quickpick styling when searching for a file,
With the change:
Compare to VSCode:
A more perfect change would refactor the CSS (e.g. using BEM) to avoid the high levels of selector specificity in
monaco-editor-core
that lead to this. However, that would also have complex effects. This PR should have more narrowly determined consequences.How to test
Ctrl + P
). Search using various strings and observe the problems described above.Review checklist
Reminder for reviewers