Files
blockly/core/theme/classic.ts
Maribeth Bottorff 88ff901a72 chore: use prettier instead of clang-format (#7014)
* chore: add and configure prettier

* chore: remove clang-format

* chore: remove clang-format config

* chore: lint additional ts files

* chore: fix lint errors in blocks

* chore: add prettier-ignore where needed

* chore: ignore js blocks when formatting

* chore: fix playground html syntax

* chore: fix yaml spacing from merge

* chore: convert text blocks to use arrow functions

* chore: format everything with prettier

* chore: fix lint unused imports in blocks
2023-05-10 16:01:39 -07:00

42 lines
1.3 KiB
TypeScript

/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import * as goog from '../../closure/goog/goog.js';
goog.declareModuleId('Blockly.Themes.Classic');
import {Theme} from '../theme.js';
const 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'},
};
const 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 theme.
* Contains multi-coloured border to create shadow effect.
*/
export const Classic = new Theme('classic', defaultBlockStyles, categoryStyles);