Files
blockly/core/theme/classic.js
Monica Kozbial d8fbe1b05b Add namespace and alias annotations to jsdoc (#5550)
* Add annotations to files under core/events

* Add annotations to files under core/interfaces

* Add annotations to files under core/keyboard_nav

* Add annotations to files under core/renderers

* Add annotations to files under core/serialization

* Add annotations to files under core/theme

* Add annotations to files under core/toolbox

* Add annotations to files under core/utils

* Add annotations to files under core
2021-09-27 14:42:54 -07:00

55 lines
1.4 KiB
JavaScript

/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Classic theme.
* Contains multi-coloured border to create shadow effect.
*/
'use strict';
/**
* Classic theme.
* Contains multi-coloured border to create shadow effect.
* @namespace Blockly.Themes.Classic
*/
goog.module('Blockly.Themes.Classic');
const Theme = goog.require('Blockly.Theme');
// Temporary holding object.
let Classic = {};
Classic.defaultBlockStyles = {
'colour_blocks': {'colourPrimary': '20'},
'list_blocks': {'colourPrimary': '260'},
'logic_blocks': {'colourPrimary': '210'},
'loop_blocks': {'colourPrimary': '120'},
'math_blocks': {'colourPrimary': '230'},
'procedure_blocks': {'colourPrimary': '290'},
'text_blocks': {'colourPrimary': '160'},
'variable_blocks': {'colourPrimary': '330'},
'variable_dynamic_blocks': {'colourPrimary': '310'},
'hat_blocks': {'colourPrimary': '330', 'hat': 'cap'}
};
Classic.categoryStyles = {
'colour_category': {'colour': '20'},
'list_category': {'colour': '260'},
'logic_category': {'colour': '210'},
'loop_category': {'colour': '120'},
'math_category': {'colour': '230'},
'procedure_category': {'colour': '290'},
'text_category': {'colour': '160'},
'variable_category': {'colour': '330'},
'variable_dynamic_category': {'colour': '310'}
};
Classic =
new Theme('classic', Classic.defaultBlockStyles, Classic.categoryStyles);
exports = Classic;