File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -352,11 +352,8 @@ export const TOOLBOX = {
352
352
]
353
353
} ;
354
354
355
- // Defining a Blockly Theme in accordance with the current JupyterLab Theme.
356
- export function define_jupyter_theme ( ) : Blockly . Theme {
357
- Blockly . registry . unregister ( 'theme' , 'jupyterlab' ) ;
358
-
359
- var jupyterlab_theme = Blockly . Theme . defineTheme ( 'jupyterlab' , {
355
+ // Defining a Blockly Theme in accordance with the current JupyterLab Theme.
356
+ const jupyterlab_theme = Blockly . Theme . defineTheme ( 'jupyterlab' , {
360
357
'base' : Blockly . Themes . Classic ,
361
358
'componentStyles' : {
362
359
'workspaceBackgroundColour' : 'var(--jp-layout-color0)' ,
@@ -373,5 +370,4 @@ export function define_jupyter_theme() : Blockly.Theme{
373
370
}
374
371
} ) ;
375
372
376
- return jupyterlab_theme ;
377
- }
373
+ export const THEME : Blockly . Theme = jupyterlab_theme ;
You can’t perform that action at this time.
0 commit comments