Change hover color for quick picker

前端 未结 3 1354
谎友^
谎友^ 2021-01-20 02:42

Is it possible to change the color for quick picker selected option via settings?

相关标签:
3条回答
  • 2021-01-20 03:21

    There are 2 variables that I know of associated with Quick Picker. Neither seem related to a hover color but they may be. The 2 are:

    pickerGroup.border: Quick picker (Quick Open) color for grouping borders.
    pickerGroup.foreground: Quick picker (Quick Open) color for grouping labels.
    

    Hope one of these helps you. Try them in the settings file.

    0 讨论(0)
  • 2021-01-20 03:27

    To keep your current theme and change just this color, find "Workbench: Color Customizations" in your settings and click "edit in settings.json", and add the following to the user settings on the right side of the screen:

    "workbench.colorCustomizations": {
      "list.focusBackground": "#CCCCCC"
    },
    

    You can replace it with any color you'd like.

    0 讨论(0)
  • 2021-01-20 03:32

    You can install or download a new theme via:

    Files -> Preferences -> Color Theme
    

    Or you can create your own theme from scratch or reuse of an existing one with the VSCE tool:

    https://code.visualstudio.com/docs/extensions/themes-snippets-colorizers

    Or you can simply find the theme in the folder::

    \Microsoft VS Code\resources\app\extensions
    

    Where the colors are saved in JSON files.

    The defaults are in the:

    \theme-defaults\themese
    

    Here is the Visual Studio Light (light_defaults.json), where I just changed the list.hoverBackground color to some hideous purple:

    {
        "$schema": "vscode://schemas/color-theme",
        "name": "Light Default Colors",
        "colors": {
            "editor.background": "#FFFFFF",
            "editor.foreground": "#000000",
            "editor.inactiveSelectionBackground": "#CCCCCC",
            "editorIndentGuide.background": "#D3D3D3",
            "editorIndentGuide.activeBackground": "#939393",
            "editor.selectionHighlightBackground": "#FFFFE0",
            "editorSuggestWidget.background": "#F3F3F3",
            "activityBarBadge.background": "#007ACC",
            "sideBarTitle.foreground": "#6F6F6F",
            "list.hoverBackground": "#FF00FF",
            "input.placeholderForeground": "#ADADAD"
        }
    }
    

    --- update ---

    Different themes use more or fewer options depending on how much they vary from the default color. Missing ones can be added too. The ones you are looking for here are called list.hoverBackground and list.highlightForeground and they are pretty general affecting lots of different areas in VS Code.

    "list.hoverBackground": "#ffffff",
    "list.highlightForeground": "#bbdaff",
    
    0 讨论(0)
提交回复
热议问题