Added icons in book tree view (#6404)

* add icons

* added icon files

* fixed icon paths

* moved icons into object initializer
This commit is contained in:
Lucy Zhang
2019-07-17 16:47:54 -07:00
committed by GitHub
parent 089d7cb9f4
commit d74c2d6c8d
11 changed files with 79 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ export class BookTreeItem extends vscode.TreeItem {
private _nextUri: string;
public command: vscode.Command;
constructor(public book: BookTreeItemFormat) {
constructor(public book: BookTreeItemFormat, icons: any) {
super(book.title, vscode.TreeItemCollapsibleState.Collapsed);
if (book.type === BookTreeItemType.Book) {
@@ -41,6 +41,7 @@ export class BookTreeItem extends vscode.TreeItem {
this.setPageVariables();
this.setCommand();
}
this.iconPath = icons;
}
private setPageVariables() {