@@ -14,7 +14,6 @@ import { IDisposable, toDisposable, dispose, Disposable } from 'vs/base/common/l
1414import { Registry } from 'vs/platform/registry/common/platform' ;
1515import { IWorkbenchActionRegistry , Extensions as ActionExtensions } from 'vs/workbench/common/actions' ;
1616import { SyncActionDescriptor } from 'vs/platform/actions/common/actions' ;
17- import { IThemeService } from 'vs/platform/theme/common/themeService' ;
1817
1918function animate ( drawFn : ( ) => void ) : IDisposable {
2019 let disposed = false ;
@@ -35,7 +34,7 @@ function animate(drawFn: () => void): IDisposable {
3534 } ) ;
3635}
3736
38- function makeItSnow ( canvas : HTMLCanvasElement , dark : boolean ) : IDisposable {
37+ function makeItSnow ( canvas : HTMLCanvasElement ) : IDisposable {
3938 const ctx = canvas . getContext ( '2d' ) ! ;
4039 const flakes : any [ ] = [ ] ;
4140
@@ -51,7 +50,7 @@ function makeItSnow(canvas: HTMLCanvasElement, dark: boolean): IDisposable {
5150 vx : ( - ( 0.5 * distance ) ) * window . devicePixelRatio ,
5251 vy : ( 0.2 + 1.5 * distance ) * window . devicePixelRatio ,
5352 size : ( 2 + 2 * distance ) * window . devicePixelRatio ,
54- color : dark ? ( 170 + distance * 50 ) : ( 200 - distance * 50 )
53+ color : 170 + distance * 50
5554 } ) ;
5655 }
5756
@@ -90,8 +89,7 @@ export class HappyHolidaysAction extends Action {
9089
9190 constructor (
9291 id : string ,
93- label : string ,
94- @IThemeService private themeService : IThemeService
92+ label : string
9593 ) {
9694 super ( id , label , '' , true ) ;
9795 }
@@ -111,7 +109,7 @@ export class HappyHolidaysAction extends Action {
111109 canvas . height = document . body . clientHeight * window . devicePixelRatio ;
112110 canvas . style . width = `${ document . body . clientWidth } px` ;
113111 canvas . style . height = `${ document . body . clientHeight } px` ;
114- disposables . push ( makeItSnow ( canvas , this . themeService . getTheme ( ) . type !== 'light' ) ) ;
112+ disposables . push ( makeItSnow ( canvas ) ) ;
115113
116114 const text = append ( el , $ ( '.happy-holidays-text' ) ) ;
117115 text . innerText = `The VS Code team wishes you a great Holiday season!` ;
0 commit comments