json - 如何使用 settings.json 更改活动栏中图标的颜色
问题描述
我一直在关注 Coder Coder 的本教程,以使我的 vscode 看起来更好(教程链接https://youtu.be/pGzssFNtWXw)。根据视频,我打开了 settings.json 文件并编写了一些代码但是当我尝试更改活动栏中图标的颜色时,没有任何反应,这是我尝试用来更改的代码行颜色:"activityBarBadge.foreground": "#000000"
虽然这不起作用
这是代码:
"workbench.colorCustomizations": {
"editor.background": "#000814",
"sideBar.background": "#000d20",
"sideBarTitle.foreground": "#ffd60a",
"sideBarSectionHeader.foreground": "#ffd60a",
"activityBar.activeBackground": "#ffea81d5",
"activityBar.background": "#22223b",
"statusBar.background": "#ffd60a",
}
这是我得到的结果:
解决方案
要更改活动栏图标颜色,请使用以下两种colorCustomizations
:
"activityBar.inactiveForeground"
"activityBar.foreground"
// 对于活动图标
推荐阅读
- javascript - 为什么我在 React 中收到无效的 Hook 调用?
- php - 从特定范围内生成 x 个不重复且不在数组中的随机数
- angular - 亚马逊跨域请求被阻止:
- html - 如何在多个域中托管相同的网站内容
- security - CSRF 令牌是否足以防止 XSSI 攻击?
- firebase - 将 Firebase 数据渲染到 FlatList
- azure - .NET Core 3.0 工作者 - 无法使用 Application Insights 或 EventLog 进行日志记录
- java - 如何在netty中获取一个tcp数据包的序列号?
- regex - 如何获得正确大小的子字符串?
- android-studio - 如何在分离本地和远程数据源的同时保留当前的后端架构?