英文:
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 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?
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中解决了这个问题:
- 安装 gnome-tweaks,如果尚未安装。
sudo dnf install gnome-tweaks
-
启动 gnome-tweaks。
-
转到外观 -> 主题 -> 传统应用程序(选项) -> 选择深色主题。
就这样。现在它将看起来正常。
英文:
I have fixed this in Fedora workstation 38 by following steps:
- Install gnome-tweaks, if you have not already installed.
sudo dnf install gnome-tweaks
-
Launch gnome-tweaks
-
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论