gonfunko / scratch-blocks

Scratch Blocks is a library for building creative computing interfaces.
https://scratch.mit.edu/developers
Apache License 2.0
1 stars 0 forks source link

refactor: use block styles instead of directly specifying block colors #171

Closed gonfunko closed 4 weeks ago

gonfunko commented 4 weeks ago

This is one of three PRs across scratch-blocks, scratch-gui and scratch-vm that refactor each package to define block colors as Blockly BlockStyles, instead of using the colour attribute in Block JSON. This has several advantages:

In addition, these changes fix the coloration of dropdown fields in their various forms to align with Scratch's behavior. The ability for Scratch extensions to specify a custom block color is also preserved, even though that functionality is currently unused.