简体   繁体   English

VSCODE状态栏颜色固定

[英]VSCODE Status Bar Color Is Fixed

I am using VSCODE 1.46.1.我正在使用 VSCODE 1.46.1。

The color (purple) in the status bar is fixed.状态栏中的颜色(紫色)是固定的。 It is not changing no matter how much I change the theme.无论我如何改变主题,它都没有改变。

To make sure it is not caused by any extension, I have disabled all extensions.为了确保它不是由任何扩展引起的,我禁用了所有扩展。

To make sure it is not caused by any settings, I have removed everything from the settings.json file except the following lines:为了确保它不是由任何设置引起的,我已经从settings.json文件中删除了除以下几行之外的所有内容:

{
    "workbench.colorTheme": "Default Light+"
}

Still the taskbar looks the following.任务栏仍然如下所示。

在此处输入图像描述

What might be the issue here?这里可能是什么问题?

{
    "workbench.colorCustomizations": {
        // Status bar when a folder or workspace is active
        "statusBar.background": "#ff0000",
        "statusBar.foreground": "#ff0000",
        "statusBar.border": "#ffff00",

        // Status bar when VSCode is in debugging mode
        "statusBar.debuggingBackground": "#ffffff",
        "statusBar.debuggingForeground": "#000000",
        "statusBar.debuggingBorder": "#ff0000",

        // Status bar when no folder or workspace has been opened. 
        "statusBar.noFolderBackground": "#ff0000",
        "statusBar.noFolderBorder": "#0000ff",
        "statusBar.noFolderForeground": "#00ff00"
    }
}

If you want to change the status bar when you've got no folders open, you can use如果您想在没有打开任何文件夹时更改状态栏,您可以使用

"statusBar.noFolderBackground": "#ffffff"

these are the settings that change your status bar colors.这些是更改您的状态栏 colors 的设置。 Verify if you have any added to your settings.json or in any workspace file or a settings.json in your .vscode folder.验证您是否在settings.json或任何工作区文件或.vscode文件夹中的settings.json中添加了任何内容。

I was having the same problem after I installed and uninstalled a color extension.安装和卸载颜色扩展后,我遇到了同样的问题。 I tried to modify the settings.json file to no avail.我试过修改settings.json文件无果。 I found that my problem was that the extension had modified the *.code-workspace file and added these lines我发现我的问题是扩展修改了 *.code-workspace 文件并添加了这些行

"settings": {
"workbench.colorCustomizations": {
  "activityBar.background": "#312F07",
  "titleBar.activeBackground": "#444209",
  "titleBar.activeForeground": "#FCFBE9"
}

} }

This configuration was overriding the rest. The solution was simply to remove them from every workspace file, which allowed the activity bar color to be back to its normal behavior (clear color for light themes and viceversa).此配置覆盖了 rest。解决方案只是将它们从每个工作区文件中删除,这允许活动栏颜色恢复到其正常行为(浅色主题的清晰颜色,反之亦然)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM