@@ -59,7 +59,7 @@ import { OpenFolderAction, OpenFileFolderAction } from 'vs/workbench/browser/act
5959import * as Constants from 'vs/workbench/parts/search/common/constants' ;
6060import { IListService } from 'vs/platform/list/browser/listService' ;
6161import { IThemeService , ITheme , ICssStyleCollector } from 'vs/platform/theme/common/themeService' ;
62- import * as colorRegistry from 'vs/platform/theme/common/colorRegistry' ;
62+ import { editorFindMatchHighlight } from 'vs/platform/theme/common/colorRegistry' ;
6363
6464export class SearchViewlet extends Viewlet {
6565
@@ -131,8 +131,6 @@ export class SearchViewlet extends Viewlet {
131131 this . toUnbind . push ( this . untitledEditorService . onDidChangeDirty ( e => this . onUntitledDidChangeDirty ( e ) ) ) ;
132132 this . toUnbind . push ( this . configurationService . onDidUpdateConfiguration ( e => this . onConfigurationUpdated ( e . config ) ) ) ;
133133
134- this . toUnbind . push ( this . themeService . onThemeChange ( this . applyTheme . bind ( this ) ) ) ;
135-
136134 this . selectCurrentMatchEmitter = new Emitter < string > ( ) ;
137135 debounceEvent ( this . selectCurrentMatchEmitter . event , ( l , e ) => e , 100 , /*leading=*/ true )
138136 ( ( ) => this . selectCurrentMatch ( ) ) ;
@@ -144,8 +142,8 @@ export class SearchViewlet extends Viewlet {
144142 this . updateGlobalPatternExclusions ( configuration ) ;
145143 }
146144
147- private applyTheme ( theme : ITheme , collector : ICssStyleCollector ) {
148- let matchHighlightColor = theme . getColor ( colorRegistry . editorFindMatchHighlight ) ;
145+ protected updateStyles ( theme : ITheme , collector : ICssStyleCollector ) {
146+ let matchHighlightColor = theme . getColor ( editorFindMatchHighlight ) ;
149147 if ( matchHighlightColor ) {
150148 collector . addRule ( `.search-viewlet .findInFileMatch { background-color: ${ matchHighlightColor } ; }` ) ;
151149 collector . addRule ( `.search-viewlet .highlight { background-color: ${ matchHighlightColor } ; }` ) ;
0 commit comments