@@ -230,6 +230,10 @@ function getSharedListStyleSheet(): HTMLStyleElement {
230230 return sharedListStyleSheet ;
231231}
232232
233+ export interface IWorkbenchListOptions < T > extends IListOptions < T > {
234+ readonly overrideStyles ?: IColorMapping ;
235+ }
236+
233237export class WorkbenchList < T > extends List < T > {
234238
235239 readonly contextKeyService : IContextKeyService ;
@@ -246,7 +250,7 @@ export class WorkbenchList<T> extends List<T> {
246250 container : HTMLElement ,
247251 delegate : IListVirtualDelegate < T > ,
248252 renderers : IListRenderer < T , any > [ ] ,
249- options : IListOptions < T > ,
253+ options : IWorkbenchListOptions < T > ,
250254 @IContextKeyService contextKeyService : IContextKeyService ,
251255 @IListService listService : IListService ,
252256 @IThemeService themeService : IThemeService ,
@@ -282,7 +286,7 @@ export class WorkbenchList<T> extends List<T> {
282286
283287 this . disposables . add ( this . contextKeyService ) ;
284288 this . disposables . add ( ( listService as ListService ) . register ( this ) ) ;
285- this . disposables . add ( attachListStyler ( this , themeService ) ) ;
289+ this . disposables . add ( attachListStyler ( this , themeService , options . overrideStyles ) ) ;
286290 this . disposables . add ( this . onSelectionChange ( ( ) => {
287291 const selection = this . getSelection ( ) ;
288292 const focus = this . getFocus ( ) ;
@@ -328,7 +332,7 @@ export class WorkbenchPagedList<T> extends PagedList<T> {
328332 container : HTMLElement ,
329333 delegate : IListVirtualDelegate < number > ,
330334 renderers : IPagedRenderer < T , any > [ ] ,
331- options : IListOptions < T > ,
335+ options : IWorkbenchListOptions < T > ,
332336 @IContextKeyService contextKeyService : IContextKeyService ,
333337 @IListService listService : IListService ,
334338 @IThemeService themeService : IThemeService ,
@@ -360,7 +364,7 @@ export class WorkbenchPagedList<T> extends PagedList<T> {
360364
361365 this . disposables . add ( this . contextKeyService ) ;
362366 this . disposables . add ( ( listService as ListService ) . register ( this ) ) ;
363- this . disposables . add ( attachListStyler ( this , themeService ) ) ;
367+ this . disposables . add ( attachListStyler ( this , themeService , options . overrideStyles ) ) ;
364368
365369 this . registerListeners ( ) ;
366370 }
0 commit comments