-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate icons to codicon in dependency explorer #242
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One major goal of this change is to use themes. So we need to prioritize for real meanings, and then the image.
src/views/containerNode.ts
Outdated
protected get iconPath(): { light: string, dark: string } { | ||
return ExplorerNode.resolveIconPath("library"); | ||
protected get iconPath(): ThemeIcon { | ||
return new ThemeIcon("inbox"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are actually looking for "books" right? But it's not there. How about " files"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we request books in vscode repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requested: microsoft/vscode-codicons#7
src/views/packageNode.ts
Outdated
protected get iconPath(): { light: string; dark: string } { | ||
return ExplorerNode.resolveIconPath("package"); | ||
protected get iconPath(): ThemeIcon { | ||
return new ThemeIcon("symbol-namespace"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest "symbol-package".
src/views/packageRootNode.ts
Outdated
const data = <IPackageRootNodeData>this.nodeData; | ||
if (data.entryKind === PackageRootKind.K_BINARY) { | ||
return ExplorerNode.resolveIconPath("jar"); | ||
return new ThemeIcon("archive"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest "file-zip"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
resolve #246
This PR is to totally migrate the icons in dependency explorer to
codicon
.Before:
After:
@testforstephen @akaroml @Eskibear Please take a look when you have time, let me know if this UI change is acceptable or if you have any suggestions.
Reference: https://microsoft.github.io/vscode-codicons/dist/codicon.html