Migrate core/theme/zelos.js to goog.module

This commit is contained in:
kozbial
2021-08-17 12:47:34 -07:00
committed by Monica Kozbial
parent 3bbbdbcfe9
commit 221f0b9c42
2 changed files with 11 additions and 8 deletions

View File

@@ -9,15 +9,16 @@
*/
'use strict';
goog.provide('Blockly.Themes.Zelos');
goog.module('Blockly.Themes.Zelos');
goog.module.declareLegacyNamespace();
goog.require('Blockly.Theme');
// Temporary holding object.
Blockly.Themes.Zelos = {};
let Zelos = {};
Blockly.Themes.Zelos.defaultBlockStyles = {
Zelos.defaultBlockStyles = {
"colour_blocks": {
"colourPrimary": "#CF63CF",
"colourSecondary": "#C94FC9",
@@ -71,7 +72,7 @@ Blockly.Themes.Zelos.defaultBlockStyles = {
}
};
Blockly.Themes.Zelos.categoryStyles = {
Zelos.categoryStyles = {
"colour_category": {
"colour": "#CF63CF"
},
@@ -101,6 +102,8 @@ Blockly.Themes.Zelos.categoryStyles = {
}
};
Blockly.Themes.Zelos =
new Blockly.Theme('zelos', Blockly.Themes.Zelos.defaultBlockStyles,
Blockly.Themes.Zelos.categoryStyles);
Zelos =
new Blockly.Theme('zelos', Zelos.defaultBlockStyles,
Zelos.categoryStyles);
exports = Zelos;

View File

@@ -192,7 +192,7 @@ goog.addDependency('../../core/shortcut_items.js', ['Blockly.ShortcutItems'], ['
goog.addDependency('../../core/shortcut_registry.js', ['Blockly.ShortcutRegistry'], ['Blockly.utils.KeyCodes', 'Blockly.utils.object'], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/theme.js', ['Blockly.Theme'], ['Blockly.registry', 'Blockly.utils.object'], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/theme/classic.js', ['Blockly.Themes.Classic'], ['Blockly.Theme']);
goog.addDependency('../../core/theme/zelos.js', ['Blockly.Themes.Zelos'], ['Blockly.Theme']);
goog.addDependency('../../core/theme/zelos.js', ['Blockly.Themes.Zelos'], ['Blockly.Theme'], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/theme_manager.js', ['Blockly.ThemeManager'], ['Blockly.utils.dom'], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/toolbox/category.js', ['Blockly.ToolboxCategory'], ['Blockly', 'Blockly.Css', 'Blockly.ToolboxItem', 'Blockly.registry', 'Blockly.utils', 'Blockly.utils.aria', 'Blockly.utils.dom', 'Blockly.utils.object', 'Blockly.utils.toolbox'], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/toolbox/collapsible_category.js', ['Blockly.CollapsibleToolboxCategory'], ['Blockly.ToolboxCategory', 'Blockly.ToolboxSeparator', 'Blockly.registry', 'Blockly.utils.aria', 'Blockly.utils.dom', 'Blockly.utils.object', 'Blockly.utils.toolbox'], {'lang': 'es6', 'module': 'goog'});