Skip to content

Commit f0cd2ba

Browse files
committed
Return original explorer icons for cluster/project/component
This PR fixes #2582. Signed-off-by: Denis Golovin dgolovin@redhat.com
1 parent 618ada5 commit f0cd2ba

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed
13.7 KB
Loading
3.33 KB
Loading

images/context/project-node.png

4.13 KB
Loading

src/explorer.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ export class OpenShiftExplorer implements TreeDataProvider<ExplorerItem>, Dispos
124124
return {
125125
contextValue: 'openshift.k8sContext',
126126
label: this.kubeConfig.getCluster(element.cluster).server,
127-
collapsibleState: TreeItemCollapsibleState.Collapsed
127+
collapsibleState: TreeItemCollapsibleState.Collapsed,
128+
iconPath: path.resolve(__dirname, '../../images/context/cluster-node.png')
128129
};
129130
}
130131

@@ -136,14 +137,17 @@ export class OpenShiftExplorer implements TreeDataProvider<ExplorerItem>, Dispos
136137
contextValue: 'openshift.project',
137138
label: element.metadata.name,
138139
collapsibleState: TreeItemCollapsibleState.Collapsed,
139-
iconPath: path.resolve(__dirname, '../../images/context/dark/project.svg')
140+
iconPath: path.resolve(__dirname, '../../images/context/project-node.png')
140141
}
141142
}
142143
return {
143144
contextValue: 'openshift.k8sObject',
144145
label: element.metadata.name,
145146
collapsibleState: TreeItemCollapsibleState.None,
146-
iconPath: element.kind === 'Deployment' ? path.resolve(__dirname, '../../images/context/dark/deployment.svg') : path.resolve(__dirname, '../../images/context/dark/deployment-config.svg')
147+
iconPath: {
148+
dark: path.resolve(__dirname, '../../images/context/component-node-dark.png'),
149+
light: path.resolve(__dirname, '../../images/context/component-node-light.png')
150+
}
147151
};
148152
}
149153

0 commit comments

Comments
 (0)