@@ -7,11 +7,11 @@ import 'vs/css!./media/bannerpart';
7
7
import { localize } from 'vs/nls' ;
8
8
import { $ , addDisposableListener , append , asCSSUrl , clearNode , EventType } from 'vs/base/browser/dom' ;
9
9
import { ActionBar } from 'vs/base/browser/ui/actionbar/actionbar' ;
10
- import { Codicon , registerCodicon } from 'vs/base/common/codicons' ;
10
+ import { Codicon } from 'vs/base/common/codicons' ;
11
11
import { registerSingleton } from 'vs/platform/instantiation/common/extensions' ;
12
12
import { IInstantiationService , ServicesAccessor } from 'vs/platform/instantiation/common/instantiation' ;
13
13
import { IStorageService } from 'vs/platform/storage/common/storage' ;
14
- import { IThemeService , registerThemingParticipant } from 'vs/platform/theme/common/themeService' ;
14
+ import { IThemeService , registerThemingParticipant , ThemeIcon } from 'vs/platform/theme/common/themeService' ;
15
15
import { Part } from 'vs/workbench/browser/part' ;
16
16
import { IWorkbenchLayoutService , Parts } from 'vs/workbench/services/layout/browser/layoutService' ;
17
17
import { Action } from 'vs/base/common/actions' ;
@@ -27,12 +27,7 @@ import { KeybindingsRegistry, KeybindingWeight } from 'vs/platform/keybinding/co
27
27
import { KeyCode } from 'vs/base/common/keyCodes' ;
28
28
import { IContextKeyService , RawContextKey } from 'vs/platform/contextkey/common/contextkey' ;
29
29
import { URI } from 'vs/base/common/uri' ;
30
-
31
-
32
- // Icons
33
-
34
- const bannerCloseIcon = registerCodicon ( 'banner-close' , Codicon . close ) ;
35
-
30
+ import { widgetClose } from 'vs/platform/theme/common/iconRegistry' ;
36
31
37
32
// Theme support
38
33
@@ -257,7 +252,7 @@ export class BannerPart extends Part implements IBannerService {
257
252
// Action
258
253
const actionBarContainer = append ( this . element , $ ( 'div.action-container' ) ) ;
259
254
this . actionBar = this . _register ( new ActionBar ( actionBarContainer ) ) ;
260
- const closeAction = this . _register ( new Action ( 'banner.close' , 'Close Banner' , bannerCloseIcon . classNames , true , ( ) => this . close ( item ) ) ) ;
255
+ const closeAction = this . _register ( new Action ( 'banner.close' , 'Close Banner' , ThemeIcon . asClassName ( widgetClose ) , true , ( ) => this . close ( item ) ) ) ;
261
256
this . actionBar . push ( closeAction , { icon : true , label : false } ) ;
262
257
this . actionBar . setFocusable ( false ) ;
263
258
0 commit comments