Skip to content

Commit 27dac97

Browse files
DenisaCGhbcarlos
andcommitted
Update src/utils.ts
Co-authored-by: Carlos Herrero <carlosherrerocontact@gmail.com>
1 parent fa3a2ec commit 27dac97

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/utils.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)