Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overriding Blockly.Msg to change default block colors #56

Open
akshat46 opened this issue Jun 21, 2021 · 1 comment
Open

Overriding Blockly.Msg to change default block colors #56

akshat46 opened this issue Jun 21, 2021 · 1 comment

Comments

@akshat46
Copy link

akshat46 commented Jun 21, 2021

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.

@akshat46 akshat46 changed the title Overriding Blockly.Msg constants Overriding Blockly.Msg to change default blockl colors Jun 21, 2021
@akshat46 akshat46 changed the title Overriding Blockly.Msg to change default blockl colors Overriding Blockly.Msg to change default block colors Jun 21, 2021
@nbudin
Copy link
Owner

nbudin commented Jun 21, 2021

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?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants