Why is the Visual Studio Code native-mode menu dropdown white, even though I have dark mode activated in my desktop's settings?

huangapple go评论55阅读模式
英文:

Why is the Visual Studio Code native-mode menu dropdown white, even though I have dark mode activated in my desktop's settings?

问题

Visual Studio Code的本机模式菜单为什么是白色下拉,即使我已经启用了深色模式,并且我使用Fedora Linux,在Fedora中也启用了深色模式,但它仍然是白色?如图片所示的解决方案是什么?

Why is the Visual Studio Code native-mode menu dropdown white, even though I have dark mode activated in my desktop's settings?

我没有尝试任何方法,因为我不知道问题出在哪里。

英文:

Why is the Visual Studio Code native-mode menu dropdown white, even though I have dark mode activated and I use Fedora Linux and the dark mode is activated in Fedora, yet it is white? What is the solution as shown in the picture?

Why is the Visual Studio Code native-mode menu dropdown white, even though I have dark mode activated in my desktop's settings?

I don't try anything because I can't know the problem.

答案1

得分: 4

我不确定为什么原生标题栏模式以浅色模式显示在您的情况下。据说,您可以在GNOME桌面环境中切换到深色模式,使用以下命令:

gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark

(或者您机器上可用的其他深色模式主题)

但如果这不起作用,您可以通过将以下内容添加到您的settings.json文件中,使VS Code的颜色与您选择的颜色主题一致:

"window.titleBarStyle": "custom",

该设置的描述:

调整窗口标题栏的外观。在Linux和Windows上,此设置还会影响应用程序和上下文菜单的外观。更改需要完全重启才能生效。

英文:

I'm not sure why the native title bar mode is showing up for you with light mode colouring. Supposedly, you can switch to dark mode on the GNOME desktop environment with the following:

gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark

(or whatever other dark mode theme is available on your machine)

But if that doesn't work, you can get colouring consistent with your selected colour theme in VS Code by putting this in your settings.json:

"window.titleBarStyle": "custom",

The description for that setting:

> Adjust the appearance of the window title bar. On Linux and Windows, this setting also affects the application and context menu appearances. Changes require a full restart to apply.

答案2

得分: 2

我已经通过以下步骤在Fedora Workstation 38中解决了这个问题:

  1. 安装 gnome-tweaks,如果尚未安装。
sudo dnf install gnome-tweaks
  1. 启动 gnome-tweaks。

  2. 转到外观 -> 主题 -> 传统应用程序(选项) -> 选择深色主题。

就这样。现在它将看起来正常。

英文:

I have fixed this in Fedora workstation 38 by following steps:

  1. Install gnome-tweaks, if you have not already installed.
    sudo dnf install gnome-tweaks
  1. Launch gnome-tweaks

  2. Go to, Appearance -> Themes -> Legacy Application (option) -> Select Dark theme.

That's it. Now it will look normal

答案3

得分: 0

打开设置并搜索标题栏样式。将该选项更改为自定义可能会修复此问题。

英文:

Open Settings and search for Title Bar Style. Changing that option to custom could possibly fix this issue.

huangapple
  • 本文由 发表于 2023年2月8日 18:15:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/75384278.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定