I can't find anywhere in VSCode theming docs how to change the colors of the minimap (background, highlight,...), can someone please help me with this?
Thanks.
this works for me:
"workbench.colorCustomizations": {
"scrollbarSlider.activeBackground": "#62fa1b",
"scrollbarSlider.hoverBackground": "#fa2a1b",
"scrollbarSlider.background": "#c97554",
},
(Keywords for google: VS Code make minimap lighter)
Starting in VS Code 1.43.0, you can change the minimap opacity and background color with the following setting in settings.json:
"workbench.colorCustomizations": {
"minimap.background" : "#00002299"
}
I reached this by going to File | Preferences | Settings, typing "workbench.colorCustomizations" in the search box, and clicking "Edit in settings.json".
These are hexadecimal numbers and the order of the color channels is RGBA, so this example gives a very dark blue background and (full-size) characters from the editor can be seen behind the minimap.
{ "[your_theme]" : {"minimap.background": ...} }#1e1e1e33, it's the exact color of vscode's default theme background. The last two characters control the opacity.Here's how I sync up my customized minimapSlider and scrollbarSlider.
"workbench.colorCustomizations": {
"scrollbarSlider.background": "#0000001a",
"minimapSlider.background": "#0000001a",
"scrollbarSlider.hoverBackground": "#00000028",
"minimapSlider.hoverBackground": "#00000028",
"scrollbarSlider.activeBackground": "#00000028",
"minimapSlider.activeBackground": "#00000028",
},
"editor.minimap.showSlider": "always". The setting of "minimapSlider.background" is what I needed.I fought this one for a while, turns out it's "editor.background" but you have to restart vscode for it to take effect.
I have no clue why the accepted answer is such. If the OP means to ask about the minimap then these are some of what you would want. I'll point out that in my screenshot you see the editorGutter colors on the right, i.e. the drastically different editorGutter.modifiedBackground in red and then the minimapGutter colors show on the left, and to hightlight the difference the minimapGutter.modifiedBackground is shown for the same change in a neon green (and they're not showing aligned because of scroll position).
"workbench.colorCustomizations": {
"editorGutter.addedBackground": "#00ff7b",
"editorGutter.deletedBackground": "#fff000",
"editorGutter.modifiedBackground": "#ff0000",
"minimapGutter.addedBackground": "#00ff7b",
"minimapGutter.deletedBackground": "#770909",
"minimapGutter.modifiedBackground": "#37ff00",
...
},
I think those settings can be overwritten. Go to your VSCode settings and under the workbench.colorCustomizations settings, the ones you're interested in are those starting with scrollbarSlider.*.
Check https://code.visualstudio.com/docs/getstarted/themes for more infos.
Hope it helps
workbench.colorCustomizations but scrollbarSlider keys don't affect the minimap :(