Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize command palette color and keybindings when creating vscode theme

Creating a VSCode theme for myself. I like the color configuration I have at the moment, but when I open the command palette, it is 'see-through' making it hard to read. How can I configure the palette when designing my theme?

See through command palette

like image 872
StarLlama Avatar asked Jun 15 '18 23:06

StarLlama


People also ask

How do I change the command palette code in Visual Studio?

Command Palette# The most important key combination to know is Ctrl+Shift+P, which brings up the Command Palette. From here, you have access to all of the functionality of VS Code, including keyboard shortcuts for the most common operations.

Can I customize VS Code theme?

You can customize your active Visual Studio Code color theme with the workbench. colorCustomizations user setting. Note: If you want to use an existing color theme, see Color Themes where you'll learn how to set the active color theme through the Preferences: Color Theme dropdown (Ctrl+K Ctrl+T).

How do I change the color scheme in VS Code terminal?

You can go to 'File -> Preferences -> Color Theme' option in visual studio and change the color of you choice.


2 Answers

V1.36 added these two colorCustomizations for the command palette/quick open panel:

"quickInput.background": "#ff0000",
"quickInput.foreground": "#fff"

Thanks to add color controls to quick open panel PR.


And those keybindings shown to the right of each command will be themeable in v1.56 (in Insiders already). See https://github.com/microsoft/vscode/commit/a3444b121230a97f3ae07304780ea130ea092542

"workbench.colorCustomizations": {
  "keybindingLabelBackground": "#f00",
  "keybindingLabelForeground": "#f00",
  "keybindingLabelBorder": "#f00",
  "keybindingLabelBottomBorder": "#f00",
  "keybindingLabelShadow": "#f00"
}
like image 54
Mark Avatar answered Nov 13 '22 05:11

Mark


To change the background of the command palette, modify the sideBar.background setting. More info

I had the exact same problem as you so I went hunting for it in the docs. At first I thought it was a list colour setting because changing list.focusBackground changes the selected item in the command palette.

like image 39
timiscoding Avatar answered Nov 13 '22 04:11

timiscoding