Zelos replacement highlight (#3431)

* Zelos replacement highlight
This commit is contained in:
Sam El-Husseini
2019-11-13 17:14:28 -08:00
committed by GitHub
parent a7ebd604e9
commit f9dcb60f82
9 changed files with 129 additions and 17 deletions

View File

@@ -164,7 +164,9 @@ Blockly.createMainWorkspace_ = function(svg, options, blockDragSurface,
mainWorkspace.scale = options.zoomOptions.startScale;
svg.appendChild(mainWorkspace.createDom('blocklyMainBackground'));
// Set the theme name on the injection div.
// Set the theme name and renderer name onto the injection div.
Blockly.utils.dom.addClass(mainWorkspace.getInjectionDiv(),
(mainWorkspace.options.renderer || 'geras') + '-renderer');
Blockly.utils.dom.addClass(mainWorkspace.getInjectionDiv(),
mainWorkspace.getTheme().name + '-theme');