-
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
monaco: fix focused quick-input #10074
Conversation
Thanks @vince-fugnitto that looks great! I noticed an issue with the high-contrast theme: There's no way to track the focused element anymore as its background color is also black. Compare to vscode which paints an outline around selected elements: It seems like vscode has special css rules for high contrast themes that handle outlines for different elements. |
I think its part of a much bigger issue across the framework #6743 and also present on |
Sure, I just didn't notice it on |
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.
LGTM 👍
The commit fixes the styling for the monaco `quick-input` by introducing additional colors (through the `ColorRegistry`) and applying specific styling when an entry is currently focused. The changes should: - properly apply a foreground color for focused entries (including label, keybinding, separator). - display properly when focused and fuzzy search results are present. Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
877b48a
to
453811a
Compare
@msujew I updated the pull-request to also style the focused icons similarly to vscode: For example, in the active-symbol.mp4 |
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.
Quick input icons are now colored correctly as well 👍
What it does
The commit fixes the monaco
quick-input
styling for entries which are focused by end-users.The change includes additional vscode colors (registered to the
ColorRegistry
) and applies them to the focused elements.The changes should:
monaco-focused-updates.mp4
How to test
Review checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto vincent.fugnitto@ericsson.com