diff --git a/core/blockly.js b/core/blockly.js index 5f2a71908..a7067caa5 100644 --- a/core/blockly.js +++ b/core/blockly.js @@ -708,7 +708,7 @@ Blockly.setTheme = function(theme) { ws.toolbox_.updateColourFromTheme(); } - var event = new Blockly.Events.Ui(null, 'themeChanged'); + var event = new Blockly.Events.Ui(null, 'theme'); event.workspaceId = ws.id; Blockly.Events.fire(event); }; diff --git a/tests/jsunit/theme_test.js b/tests/jsunit/theme_test.js index 782b8be90..80a78ca9c 100644 --- a/tests/jsunit/theme_test.js +++ b/tests/jsunit/theme_test.js @@ -142,7 +142,7 @@ function test_setTheme() { //check that the toolbox refreshed method was called assertEquals(workspace.refreshToolboxSelection(), 3); - assertEquals(Blockly.Events.FIRE_QUEUE_.pop().element, 'themeChanged'); + assertEquals(Blockly.Events.FIRE_QUEUE_.pop().element, 'theme'); undefineThemeTestBlocks(); }