Skip to content

Commit cb23569

Browse files
committed
fix: fix some posts/categories list view icons in dark mode
1 parent cb770a5 commit cb23569

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

package.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,35 +49,38 @@
4949
{
5050
"command": "vscode-cnb.previous-posts-list",
5151
"title": "上一页",
52-
"icon": "dist/assets/icon-page-previous.svg",
52+
"icon": "$(chevron-left)",
5353
"enablement": "vscode-cnb.isAuthorized && !vscode-cnb.posts-list.refreshing && vscode-cnb.posts-list.hasPrevious",
5454
"category": "Cnblogs Posts List"
5555
},
5656
{
5757
"command": "vscode-cnb.seek-posts-list",
5858
"title": "跳页",
59-
"icon": "dist/assets/icon-seek.svg",
59+
"icon": {
60+
"light": "dist/assets/icon-seek.svg",
61+
"dark": "dist/assets/icon-seek-dark.svg"
62+
},
6063
"enablement": "vscode-cnb.isAuthorized && !vscode-cnb.posts-list.refreshing && vscode-cnb.posts-list.pageCount > 0",
6164
"category": "Cnblogs Posts List"
6265
},
6366
{
6467
"command": "vscode-cnb.next-posts-list",
6568
"title": "下一页",
66-
"icon": "dist/assets/icon-page-next.svg",
69+
"icon": "$(chevron-right)",
6770
"enablement": "vscode-cnb.isAuthorized && !vscode-cnb.posts-list.refreshing && vscode-cnb.posts-list.hasNext",
6871
"category": "Cnblogs Posts List"
6972
},
7073
{
7174
"command": "vscode-cnb.refresh-posts-list",
7275
"title": "刷新",
73-
"icon": "dist/assets/icon-refresh.svg",
76+
"icon": "$(refresh)",
7477
"enablement": "vscode-cnb.isAuthorized && !vscode-cnb.posts-list.refreshing",
7578
"category": "Cnblogs Posts List"
7679
},
7780
{
7881
"command": "vscode-cnb.save-post",
7982
"title": "保存博文",
80-
"icon": "dist/assets/icon-upload.svg",
83+
"icon": "$(cloud-upload)",
8184
"category": "Cnblogs Posts List",
8285
"enablement": "vscode-cnb.isAuthorized"
8386
},
@@ -118,7 +121,10 @@
118121
"command": "vscode-cnb.upload-image",
119122
"title": "上传图片到博客园",
120123
"category": "Cnblogs",
121-
"icon": "dist/assets/icon-image-upload.svg",
124+
"icon": {
125+
"light": "dist/assets/icon-image-upload.svg",
126+
"dark": "dist/assets/icon-image-upload-dark.svg"
127+
},
122128
"enablement": "vscode-cnb.isAuthorized"
123129
},
124130
{
@@ -141,7 +147,7 @@
141147
{
142148
"command": "vscode-cnb.save-post-file-to-cnblogs",
143149
"title": "保存到博客园",
144-
"icon": "dist/assets/icon-upload.svg",
150+
"icon": "$(cloud-upload)",
145151
"enablement": "vscode-cnb.isAuthorized"
146152
},
147153
{
@@ -166,7 +172,7 @@
166172
{
167173
"command": "vscode-cnb.refresh-post-categories-list",
168174
"title": "刷新",
169-
"icon": "dist/assets/icon-refresh.svg",
175+
"icon": "$(refresh)",
170176
"category": "Cnblogs Post Categories Management",
171177
"enablement": "!vscode-cnb.postCategoriesList.isRefreshing"
172178
},

src/assets/icon-image-upload-dark.svg

Lines changed: 1 addition & 0 deletions
Loading

src/assets/icon-seek-dark.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)