mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Migrate core/theme/zelos.js to goog.module
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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'});
|
||||
|
||||
Reference in New Issue
Block a user