Browse Source

Changes to ThemeIcon

main
Eric Amodio 4 years ago
parent
commit
ab006d9da6
2 changed files with 4 additions and 12 deletions
  1. +2
    -5
      src/views/nodes/remoteNode.ts
  2. +2
    -7
      src/views/nodes/remotesNode.ts

+ 2
- 5
src/views/nodes/remoteNode.ts View File

@ -1,5 +1,5 @@
'use strict';
import { TreeItem, TreeItemCollapsibleState } from 'vscode';
import { ThemeIcon, TreeItem, TreeItemCollapsibleState } from 'vscode';
import { BranchNode } from './branchNode';
import { BranchOrTagFolderNode } from './branchOrTagFolderNode';
import { MessageNode } from './common';
@ -134,10 +134,7 @@ export class RemoteNode extends ViewNode {
: ''
}${this.remote.path}`;
item.contextValue = ContextValues.Remote;
item.iconPath = {
dark: Container.context.asAbsolutePath('images/dark/icon-remote.svg'),
light: Container.context.asAbsolutePath('images/light/icon-remote.svg'),
};
item.iconPath = new ThemeIcon('cloud');
item.tooltip = `${this.remote.name} (${this.remote.domain})\n${this.remote.path}\n`;
}

+ 2
- 7
src/views/nodes/remotesNode.ts View File

@ -1,7 +1,6 @@
'use strict';
import { TreeItem, TreeItemCollapsibleState } from 'vscode';
import { ThemeIcon, TreeItem, TreeItemCollapsibleState } from 'vscode';
import { MessageNode } from './common';
import { Container } from '../../container';
import { Repository } from '../../git/git';
import { GitUri } from '../../git/gitUri';
import { RemoteNode } from './remoteNode';
@ -44,11 +43,7 @@ export class RemotesNode extends ViewNode {
const item = new TreeItem('Remotes', TreeItemCollapsibleState.Collapsed);
item.id = this.id;
item.contextValue = ContextValues.Remotes;
item.iconPath = {
dark: Container.context.asAbsolutePath('images/dark/icon-remote.svg'),
light: Container.context.asAbsolutePath('images/light/icon-remote.svg'),
};
item.iconPath = new ThemeIcon('cloud');
return item;
}

Loading…
Cancel
Save