如何使我的TreeView图标与VSCODE主题看起来不错?

发布于 2025-01-25 05:22:02 字数 1079 浏览 2 评论 0原文

我正在编写带有 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:

enter image description here

Compare this to the icons in the default source control tab:

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文