File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/vs/workbench/contrib/views/browser Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -816,6 +816,8 @@ class TreeRenderer extends Disposable implements ITreeRenderer<ITreeItem, FuzzyS
816816
817817 // reset
818818 templateData . actionBar . clear ( ) ;
819+ templateData . icon . style . color = '' ;
820+
819821 if ( resource || this . isFileKindThemeIcon ( node . themeIcon ) ) {
820822 const fileDecorations = this . configurationService . getValue < { colors : boolean , badges : boolean } > ( 'explorer.decorations' ) ;
821823 const labelResource = resource ? resource : URI . parse ( 'missing:_icon_resource' ) ;
@@ -841,18 +843,13 @@ class TreeRenderer extends Disposable implements ITreeRenderer<ITreeItem, FuzzyS
841843 if ( iconUrl ) {
842844 templateData . icon . className = 'custom-view-tree-node-item-icon' ;
843845 templateData . icon . style . backgroundImage = DOM . asCSSUrl ( iconUrl ) ;
844- templateData . icon . style . color = '' ;
845846 } else {
846847 let iconClass : string | undefined ;
847848 if ( node . themeIcon && ! this . isFileKindThemeIcon ( node . themeIcon ) ) {
848849 iconClass = ThemeIcon . asClassName ( node . themeIcon ) ;
849850 if ( node . themeIcon . color ) {
850851 templateData . icon . style . color = this . themeService . getColorTheme ( ) . getColor ( node . themeIcon . color . id ) ?. toString ( ) ?? '' ;
851- } else {
852- templateData . icon . style . color = '' ;
853852 }
854- } else {
855- templateData . icon . style . color = '' ;
856853 }
857854 templateData . icon . className = iconClass ? `custom-view-tree-node-item-icon ${ iconClass } ` : '' ;
858855 templateData . icon . style . backgroundImage = '' ;
You can’t perform that action at this time.
0 commit comments