Skip to content

Commit 314b97a

Browse files
Eric Amodioeamodio
Eric Amodio
authored andcommitted
Fixes #110033
1 parent 67a784d commit 314b97a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vs/workbench/contrib/views/browser/treeView.ts

+5
Original file line numberDiff line numberDiff line change
@@ -841,13 +841,18 @@ class TreeRenderer extends Disposable implements ITreeRenderer<ITreeItem, FuzzyS
841841
if (iconUrl) {
842842
templateData.icon.className = 'custom-view-tree-node-item-icon';
843843
templateData.icon.style.backgroundImage = DOM.asCSSUrl(iconUrl);
844+
templateData.icon.style.color = '';
844845
} else {
845846
let iconClass: string | undefined;
846847
if (node.themeIcon && !this.isFileKindThemeIcon(node.themeIcon)) {
847848
iconClass = ThemeIcon.asClassName(node.themeIcon);
848849
if (node.themeIcon.color) {
849850
templateData.icon.style.color = this.themeService.getColorTheme().getColor(node.themeIcon.color.id)?.toString() ?? '';
851+
} else {
852+
templateData.icon.style.color = '';
850853
}
854+
} else {
855+
templateData.icon.style.color = '';
851856
}
852857
templateData.icon.className = iconClass ? `custom-view-tree-node-item-icon ${iconClass}` : '';
853858
templateData.icon.style.backgroundImage = '';

0 commit comments

Comments
 (0)