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 = {
352352 ]
353353} ;
354354
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' , {
360357 'base' : Blockly . Themes . Classic ,
361358 'componentStyles' : {
362359 'workspaceBackgroundColour' : 'var(--jp-layout-color0)' ,
@@ -373,5 +370,4 @@ export function define_jupyter_theme() : Blockly.Theme{
373370 }
374371} ) ;
375372
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