@@ -413,17 +413,13 @@ export class TitlebarPart extends Part implements ITitleService {
413413 this . windowControls = append ( this . element , $ ( 'div.window-controls-container' ) ) ;
414414
415415 // Minimize
416- const minimizeIconContainer = append ( this . windowControls , $ ( 'div.window-icon-bg' ) ) ;
417- const minimizeIcon = append ( minimizeIconContainer , $ ( 'div.window-icon' ) ) ;
418- addClass ( minimizeIcon , 'window-minimize' ) ;
416+ const minimizeIcon = append ( this . windowControls , $ ( 'div.window-icon.window-minimize.codicon.codicon-chrome-minimize' ) ) ;
419417 this . _register ( addDisposableListener ( minimizeIcon , EventType . CLICK , e => {
420418 this . electronService . minimizeWindow ( ) ;
421419 } ) ) ;
422420
423421 // Restore
424- const restoreIconContainer = append ( this . windowControls , $ ( 'div.window-icon-bg' ) ) ;
425- this . maxRestoreControl = append ( restoreIconContainer , $ ( 'div.window-icon' ) ) ;
426- addClass ( this . maxRestoreControl , 'window-max-restore' ) ;
422+ this . maxRestoreControl = append ( this . windowControls , $ ( 'div.window-icon.window-max-restore.codicon' ) ) ;
427423 this . _register ( addDisposableListener ( this . maxRestoreControl , EventType . CLICK , async e => {
428424 const maximized = await this . electronService . isMaximized ( ) ;
429425 if ( maximized ) {
@@ -434,10 +430,7 @@ export class TitlebarPart extends Part implements ITitleService {
434430 } ) ) ;
435431
436432 // Close
437- const closeIconContainer = append ( this . windowControls , $ ( 'div.window-icon-bg' ) ) ;
438- addClass ( closeIconContainer , 'window-close-bg' ) ;
439- const closeIcon = append ( closeIconContainer , $ ( 'div.window-icon' ) ) ;
440- addClass ( closeIcon , 'window-close' ) ;
433+ const closeIcon = append ( this . windowControls , $ ( 'div.window-icon.window-close.codicon.codicon-chrome-close' ) ) ;
441434 this . _register ( addDisposableListener ( closeIcon , EventType . CLICK , e => {
442435 this . electronService . closeWindow ( ) ;
443436 } ) ) ;
@@ -477,11 +470,11 @@ export class TitlebarPart extends Part implements ITitleService {
477470 private onDidChangeMaximized ( maximized : boolean ) {
478471 if ( this . maxRestoreControl ) {
479472 if ( maximized ) {
480- removeClass ( this . maxRestoreControl , 'window -maximize' ) ;
481- addClass ( this . maxRestoreControl , 'window-unmaximize ' ) ;
473+ removeClass ( this . maxRestoreControl , 'codicon-chrome -maximize' ) ;
474+ addClass ( this . maxRestoreControl , 'codicon-chrome-restore ' ) ;
482475 } else {
483- removeClass ( this . maxRestoreControl , 'window-unmaximize ' ) ;
484- addClass ( this . maxRestoreControl , 'window -maximize' ) ;
476+ removeClass ( this . maxRestoreControl , 'codicon-chrome-restore ' ) ;
477+ addClass ( this . maxRestoreControl , 'codicon-chrome -maximize' ) ;
485478 }
486479 }
487480
@@ -621,7 +614,7 @@ registerThemingParticipant((theme: ITheme, collector: ICssStyleCollector) => {
621614 if ( titlebarActiveFg ) {
622615 collector . addRule ( `
623616 .monaco-workbench .part.titlebar > .window-controls-container .window-icon {
624- background- color: ${ titlebarActiveFg } ;
617+ color: ${ titlebarActiveFg } ;
625618 }
626619 ` ) ;
627620 }
@@ -630,7 +623,7 @@ registerThemingParticipant((theme: ITheme, collector: ICssStyleCollector) => {
630623 if ( titlebarInactiveFg ) {
631624 collector . addRule ( `
632625 .monaco-workbench .part.titlebar.inactive > .window-controls-container .window-icon {
633- background- color: ${ titlebarInactiveFg } ;
626+ color: ${ titlebarInactiveFg } ;
634627 }
635628 ` ) ;
636629 }
0 commit comments