如何使我的TreeView图标与VSCODE主题看起来不错?
我正在编写带有 Actions < /a>与之关联的,这些动作具有图标:
"contributes": {
"commands": [
{
"command": "computerVision.removeExpression",
"category": "CV",
"title": "Remove",
"icon": "resources/font-awesome/trash-can.svg"
},
{
"command": "computerVision.openView",
"category": "CV",
"title": "Open View",
"icon": "resources/font-awesome/window-restore.svg"
}
]
...
}
但这看起来像这样:
将此与默认源控制选项卡中的图标进行比较:
sstatic.net/fo3p1.png“ rel =“ nofollow noreferrer ” 让我的图标适合当前主题?我尝试分别设置深色和光线版本,但这无济于事。
I'm writing a VSCode extension with a TreeView that has actions associated with it, and those actions have icons:
"contributes": {
"commands": [
{
"command": "computerVision.removeExpression",
"category": "CV",
"title": "Remove",
"icon": "resources/font-awesome/trash-can.svg"
},
{
"command": "computerVision.openView",
"category": "CV",
"title": "Open View",
"icon": "resources/font-awesome/window-restore.svg"
}
]
...
}
But this looks like this:
Compare this to the icons in the default source control tab:
How can I get my icons to fit the current theme? I tried setting dark and light versions separately, but that didn't help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论