nbudin / react-blockly

A React component that embeds a Blockly visual programming editor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overriding Blockly.Msg to change default block colors

akshat46 opened this issue · comments

According to this issue, and the documentation here we should be able to change colors of default blocks by doing

Blockly.Msg.LOGIC_HUE = "#C554AB";

but that doesn't seem to be working with React-Blockly. What is the correct way to achieve this?

Edit: I am using v6 and its README says a custom colour property can be passed to the blocks entry in toolboxCategories but that doesn't seem to work either.

Hi @akshat46, are you using the current stable release of react-blockly or the 2.0.0-alpha.1 version? (If it's the stable series, could you try it with the alpha and see if it's still a problem there?)