-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Settings editor theming #53908
Comments
@roblourens |
I don't think so. |
@roblourens Can you add some screenshots to illustrate the various widgets? |
@roblourens While working on this noticed a couple of things: (do you still want to track here?)
Indentation, slight change in background color, limit displayed options - kind of tricky, don't really like any of these |
re: keyboard navigation. You can change the selected setting with the up/down arrow keys, then press tab or enter to focus that setting's control. What do you think of that? Hopefully that border on the select dropdown is enough to distinguish it from other things of the same color. |
I can't seem to Tab from the initial focus on the search bar into the settings tree. did I navigate wrong? |
You can use the down arrow to go from the search bar to the settings tree. You should also be able to tab from the table of contents to the settings tree. |
@roblourens Yes, that's a helpful screenshot. Maybe place it right in the description text where you describe the different colors we need. Same for TOC tree, setting tree, "Modified" label. That way we are sure we talks all about the same. |
In the UX call we decided to use |
@roblourens also update our docs: https://code.visualstudio.com/docs/getstarted/theme-color-reference |
@roblourens It seems that the background of the inputs isn't using the standard input background color: As you can see comparing the search settings box and the delay input |
There are separate theme tokens for the controls, so that theme may be overriding it. Otherwise it should be the same. Which theme is that? |
Mine, Amethyst (Dark) |
I see, the problem is that you include dark_plus, dark_vs, and dark_defaults from vscode. The settings inputs will fall back on input.background but only if the extension hasn't configured the settings-specific fields to something else, which yours now has. Do you know whether including the builtin files like that is a common thing to do? |
Ah, sorry about that. As for including them being common, I couldn't say. |
Ok, hopefully you're ok with just adding overrides to your theme for those settings then. |
Yup, thank you! |
The settings editor needs some new color tokens to be properly themeable. Currently, I use a couple hacks to ensure that the input controls look ok on the default themes. Here I'm documenting and discussing changes to make the editor look nice.
Besides the settings editor, the controls only show up in the sidebar and the panel, so they are only optimized for those backgrounds. The settings editor uses the editor background color, so we need to add separate color tokens for this scenario.
Settings tree
listActiveSelectionBackground
but for some themes, this is the same as the editor background color. This is for themes like "Monokai Pro" that are trying to disable the highlight bg on selected list items and just highlight the text.settings.settingItemActiveSelectionBorder
settings.settingItemInactiveSelectionBorder
"Modified" label
settings.modifiedItemForeground
Controls
FYI
@bpasero
@Tyriar
Anyone else interested in theming.
The text was updated successfully, but these errors were encountered: