@@ -36,78 +36,6 @@ import { IDisposable, dispose } from 'vs/base/common/lifecycle';
3636const DEBUG_TOOLBAR_POSITION_KEY = 'debug.actionswidgetposition' ;
3737const DEBUG_TOOLBAR_Y_KEY = 'debug.actionswidgety' ;
3838
39- export const debugToolBarBackground = registerColor ( 'debugToolBar.background' , {
40- dark : '#333333' ,
41- light : '#F3F3F3' ,
42- hc : '#000000'
43- } , localize ( 'debugToolBarBackground' , "Debug toolbar background color." ) ) ;
44-
45- export const debugToolBarBorder = registerColor ( 'debugToolBar.border' , {
46- dark : null ,
47- light : null ,
48- hc : null
49- } , localize ( 'debugToolBarBorder' , "Debug toolbar border color." ) ) ;
50-
51- export const debugIconStartForeground = registerColor ( 'debugIcon.startForeground' , {
52- dark : '#89D185' ,
53- light : '#388A34' ,
54- hc : '#89D185'
55- } , localize ( 'debugIcon.startForeground' , "Debug toolbar icon for start debugging." ) ) ;
56-
57- export const debugIconPauseForeground = registerColor ( 'debugIcon.pauseForeground' , {
58- dark : '#75BEFF' ,
59- light : '#007ACC' ,
60- hc : '#75BEFF'
61- } , localize ( 'debugIcon.pauseForeground' , "Debug toolbar icon for pause." ) ) ;
62-
63- export const debugIconStopForeground = registerColor ( 'debugIcon.stopForeground' , {
64- dark : '#F48771' ,
65- light : '#A1260D' ,
66- hc : '#F48771'
67- } , localize ( 'debugIcon.stopForeground' , "Debug toolbar icon for stop." ) ) ;
68-
69- export const debugIconDisconnectForeground = registerColor ( 'debugIcon.disconnectForeground' , {
70- dark : '#F48771' ,
71- light : '#A1260D' ,
72- hc : '#F48771'
73- } , localize ( 'debugIcon.disconnectForeground' , "Debug toolbar icon for disconnect." ) ) ;
74-
75- export const debugIconRestartForeground = registerColor ( 'debugIcon.restartForeground' , {
76- dark : '#89D185' ,
77- light : '#388A34' ,
78- hc : '#89D185'
79- } , localize ( 'debugIcon.restartForeground' , "Debug toolbar icon for restart." ) ) ;
80-
81- export const debugIconStepOverForeground = registerColor ( 'debugIcon.stepOverForeground' , {
82- dark : '#75BEFF' ,
83- light : '#007ACC' ,
84- hc : '#75BEFF'
85- } , localize ( 'debugIcon.stepOverForeground' , "Debug toolbar icon for step over." ) ) ;
86-
87- export const debugIconStepIntoForeground = registerColor ( 'debugIcon.stepIntoForeground' , {
88- dark : '#75BEFF' ,
89- light : '#007ACC' ,
90- hc : '#75BEFF'
91- } , localize ( 'debugIcon.stepIntoForeground' , "Debug toolbar icon for step into." ) ) ;
92-
93- export const debugIconStepOutForeground = registerColor ( 'debugIcon.stepOutForeground' , {
94- dark : '#75BEFF' ,
95- light : '#007ACC' ,
96- hc : '#75BEFF'
97- } , localize ( 'debugIcon.stepOutForeground' , "Debug toolbar icon for step over." ) ) ;
98-
99- export const debugIconContinueForeground = registerColor ( 'debugIcon.continueForeground' , {
100- dark : '#75BEFF' ,
101- light : '#007ACC' ,
102- hc : '#75BEFF'
103- } , localize ( 'debugIcon.continueForeground' , "Debug toolbar icon for continue." ) ) ;
104-
105- export const debugIconStepBackForeground = registerColor ( 'debugIcon.stepBackForeground' , {
106- dark : '#75BEFF' ,
107- light : '#007ACC' ,
108- hc : '#75BEFF'
109- } , localize ( 'debugIcon.stepBackForeground' , "Debug toolbar icon for step back." ) ) ;
110-
11139export class DebugToolBar extends Themable implements IWorkbenchContribution {
11240
11341 private $el : HTMLElement ;
@@ -184,9 +112,7 @@ export class DebugToolBar extends Themable implements IWorkbenchContribution {
184112 } , 20 ) ) ;
185113
186114 this . updateStyles ( ) ;
187-
188115 this . registerListeners ( ) ;
189-
190116 this . hide ( ) ;
191117 }
192118
@@ -327,7 +253,7 @@ export class DebugToolBar extends Themable implements IWorkbenchContribution {
327253 dom . hide ( this . $el ) ;
328254 }
329255
330- public static getActions ( menu : IMenu , debugService : IDebugService , instantiationService : IInstantiationService ) : { actions : IAction [ ] , disposable : IDisposable } {
256+ static getActions ( menu : IMenu , debugService : IDebugService , instantiationService : IInstantiationService ) : { actions : IAction [ ] , disposable : IDisposable } {
331257 const actions : IAction [ ] = [ ] ;
332258 const disposable = createAndFillInActionBarActions ( menu , undefined , actions , ( ) => false ) ;
333259 if ( debugService . getViewModel ( ) . isMultiSessionView ( ) ) {
@@ -340,7 +266,7 @@ export class DebugToolBar extends Themable implements IWorkbenchContribution {
340266 } ;
341267 }
342268
343- public dispose ( ) : void {
269+ dispose ( ) : void {
344270 super . dispose ( ) ;
345271
346272 if ( this . $el ) {
@@ -353,6 +279,78 @@ export class DebugToolBar extends Themable implements IWorkbenchContribution {
353279 }
354280}
355281
282+ export const debugToolBarBackground = registerColor ( 'debugToolBar.background' , {
283+ dark : '#333333' ,
284+ light : '#F3F3F3' ,
285+ hc : '#000000'
286+ } , localize ( 'debugToolBarBackground' , "Debug toolbar background color." ) ) ;
287+
288+ export const debugToolBarBorder = registerColor ( 'debugToolBar.border' , {
289+ dark : null ,
290+ light : null ,
291+ hc : null
292+ } , localize ( 'debugToolBarBorder' , "Debug toolbar border color." ) ) ;
293+
294+ export const debugIconStartForeground = registerColor ( 'debugIcon.startForeground' , {
295+ dark : '#89D185' ,
296+ light : '#388A34' ,
297+ hc : '#89D185'
298+ } , localize ( 'debugIcon.startForeground' , "Debug toolbar icon for start debugging." ) ) ;
299+
300+ export const debugIconPauseForeground = registerColor ( 'debugIcon.pauseForeground' , {
301+ dark : '#75BEFF' ,
302+ light : '#007ACC' ,
303+ hc : '#75BEFF'
304+ } , localize ( 'debugIcon.pauseForeground' , "Debug toolbar icon for pause." ) ) ;
305+
306+ export const debugIconStopForeground = registerColor ( 'debugIcon.stopForeground' , {
307+ dark : '#F48771' ,
308+ light : '#A1260D' ,
309+ hc : '#F48771'
310+ } , localize ( 'debugIcon.stopForeground' , "Debug toolbar icon for stop." ) ) ;
311+
312+ export const debugIconDisconnectForeground = registerColor ( 'debugIcon.disconnectForeground' , {
313+ dark : '#F48771' ,
314+ light : '#A1260D' ,
315+ hc : '#F48771'
316+ } , localize ( 'debugIcon.disconnectForeground' , "Debug toolbar icon for disconnect." ) ) ;
317+
318+ export const debugIconRestartForeground = registerColor ( 'debugIcon.restartForeground' , {
319+ dark : '#89D185' ,
320+ light : '#388A34' ,
321+ hc : '#89D185'
322+ } , localize ( 'debugIcon.restartForeground' , "Debug toolbar icon for restart." ) ) ;
323+
324+ export const debugIconStepOverForeground = registerColor ( 'debugIcon.stepOverForeground' , {
325+ dark : '#75BEFF' ,
326+ light : '#007ACC' ,
327+ hc : '#75BEFF'
328+ } , localize ( 'debugIcon.stepOverForeground' , "Debug toolbar icon for step over." ) ) ;
329+
330+ export const debugIconStepIntoForeground = registerColor ( 'debugIcon.stepIntoForeground' , {
331+ dark : '#75BEFF' ,
332+ light : '#007ACC' ,
333+ hc : '#75BEFF'
334+ } , localize ( 'debugIcon.stepIntoForeground' , "Debug toolbar icon for step into." ) ) ;
335+
336+ export const debugIconStepOutForeground = registerColor ( 'debugIcon.stepOutForeground' , {
337+ dark : '#75BEFF' ,
338+ light : '#007ACC' ,
339+ hc : '#75BEFF'
340+ } , localize ( 'debugIcon.stepOutForeground' , "Debug toolbar icon for step over." ) ) ;
341+
342+ export const debugIconContinueForeground = registerColor ( 'debugIcon.continueForeground' , {
343+ dark : '#75BEFF' ,
344+ light : '#007ACC' ,
345+ hc : '#75BEFF'
346+ } , localize ( 'debugIcon.continueForeground' , "Debug toolbar icon for continue." ) ) ;
347+
348+ export const debugIconStepBackForeground = registerColor ( 'debugIcon.stepBackForeground' , {
349+ dark : '#75BEFF' ,
350+ light : '#007ACC' ,
351+ hc : '#75BEFF'
352+ } , localize ( 'debugIcon.stepBackForeground' , "Debug toolbar icon for step back." ) ) ;
353+
356354registerThemingParticipant ( ( theme , collector ) => {
357355
358356 const debugIconStartColor = theme . getColor ( debugIconStartForeground ) ;
0 commit comments