Add the theme name to the injection div (#3413)

* Set the theme name as a class on the injection div.
This commit is contained in:
Sam El-Husseini
2019-11-07 15:19:58 -08:00
committed by GitHub
parent ee09aafd57
commit fdc50f2cd0
14 changed files with 67 additions and 20 deletions

View File

@@ -286,7 +286,7 @@ Blockly.Options.parseThemeOptions_ = function(options) {
if (theme instanceof Blockly.Theme) {
return /** @type {!Blockly.Theme} */ (theme);
}
return new Blockly.Theme(
return new Blockly.Theme('builtin',
theme['blockStyles'], theme['categoryStyles'], theme['componentStyles']);
};